oopsie
authorphasefx <phasefx@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 1 Mar 2005 21:34:09 +0000 (21:34 +0000)
committerphasefx <phasefx@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 1 Mar 2005 21:34:09 +0000 (21:34 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@137 9efc2488-bf62-4759-914b-345cdb29e865

src/srfsh/srfsh.c

index b1bc7d9..00bf13f 100644 (file)
@@ -199,7 +199,7 @@ int send_request( char* server, char* method, growing_buffer* buffer ) {
                return 0;
 
        json* params = NULL;
-       if( buffer != NULL || buffer->n_used > 0 ) 
+       if( buffer != NULL && buffer->n_used > 0 ) 
                params = json_tokener_parse(buffer->buf);
 
        osrf_app_session* session = osrf_app_client_session_init(server);