summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:37:14 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:37:14 -0500
commit8f433cde879a40fc96f295bfa35e5869781adc5d (patch)
treee497e9118c5cca14806718aa2e74446d5a07d7bd /parser.c
parent047fcb18ded8438d5763ad537c64a2c110052a11 (diff)
gpib queries should work fully now
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c6
1 files changed, 2 insertions, 4 deletions
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);