From 8f433cde879a40fc96f295bfa35e5869781adc5d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:37:14 -0500 Subject: gpib queries should work fully now --- parser.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'parser.c') diff --git a/parser.c b/parser.c index c88bbf5..b42fbf6 100644 --- a/parser.c +++ b/parser.c @@ -1064,10 +1064,8 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer if (interactive_terminal) { (*cbfunc)(user_data, error_response); } - } else { - if (interactive_terminal) { - (*cbfunc)(user_data, response); - } + } else if (response != NULL) { + (*cbfunc)(user_data, response); } g_free (units); -- cgit