]> git.evergreen-ils.org Git - OpenSRF.git/commit
Patch from Scott McKellar providing:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 23 Jul 2007 17:44:46 +0000 (17:44 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 23 Jul 2007 17:44:46 +0000 (17:44 +0000)
commit41c6deee4688894819fc97f4547794b8dfa86a16
treecc150b9d049f5a4ad1590bd033e40164c4ac39f5
parent43bbde85f4edc494364d02ce70d57358ba192114
Patch from Scott McKellar providing:

1. In handle_print(), I added the ability to display the value of
raw_print.  If we can display pretty_print, we should be able to
display raw_print.

2. In a couple of places we display the value of login_session.
However if we aren't logged in, we end up passing NULL to printf(),
thereby invoking undefined behavior.  Apparently glibc responds by
printing "(null)".  I contrived explicitly to print "(none)" rather
than rely on glibc.

3. Since login_session is assigned from strdup() if not NULL, I added
a free() for it in a couple of places: one at the end of main(), and
one just before the assignment from strdup().

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1057 9efc2488-bf62-4759-914b-345cdb29e865
src/srfsh/srfsh.c