summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
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);