diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-14 15:22:09 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-14 15:22:09 -0400 |
commit | a61fbeb78de56d89665f242172eddb1b43350183 (patch) | |
tree | 75e93d6df3672cb554bc532750ec7a3cc925970f /parser.c | |
parent | e1eba453f807db61c55c9092710c9d1f1a358dda (diff) |
null units inside the loop, for compound commands
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -503,7 +503,6 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer int space_found; /* if true, a space was found. parameter may follow */
int parameter_found; /* if true, there is a parameter at the end of the command string */
char parameter[max_input_word_length]; /* identified parameter */
- char *units = NULL;
int semicolon_found; /* to break up lines */
int units_found; /* text found after parameter must be units */
int i; /* counter */
@@ -540,6 +539,10 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer /* examine each letter in the string until EOS */
while (in[in_pos] != 0) {
+ gchar *units = NULL;
+ gchar *response = NULL;
+ gchar *error_response = NULL;
+
channel=-1;
with_id_code=0;
space_found = 0;
@@ -644,8 +647,6 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer /* add end of tokens marker (0) */
int error_num=OK;
- gchar *response = NULL;
- gchar *error_response = NULL;
if (parameter_found) {
units_found = Parser_get_unit(parameter,&units);
|