]> git.sur5r.net Git - bacula/bacula/commitdiff
Added support for NULL returning lex_open_file in lex_get_token.
authorNicolas Boichat <nicolas@boichat.ch>
Sun, 9 May 2004 09:22:40 +0000 (09:22 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Sun, 9 May 2004 09:22:40 +0000 (09:22 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1352 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/lex.c

index 42a7ab98335b95e1f3c751a0a8ab69097740997c..0a85a3f57aa135d05ec1d60d76728a28d6fe63a0 100644 (file)
@@ -461,6 +461,9 @@ lex_get_token(LEX *lf, int expect)
              ch == ';' || ch == ','   || ch == '"' || ch == '#') {
            lf->state = lex_none;
            lf = lex_open_file(lf, lf->str, NULL);
+       if (lf == NULL) {
+         return T_ERROR;
+       }
            break;
         }
         add_str(lf, ch);