From: Nicolas Boichat Date: Sun, 9 May 2004 09:22:40 +0000 (+0000) Subject: Added support for NULL returning lex_open_file in lex_get_token. X-Git-Tag: Release-1.34.3~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bbb31ff46fac33b713dc59063594bbae8e6fd155;p=bacula%2Fbacula Added support for NULL returning lex_open_file in lex_get_token. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1352 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/lex.c b/bacula/src/lib/lex.c index 42a7ab9833..0a85a3f57a 100644 --- a/bacula/src/lib/lex.c +++ b/bacula/src/lib/lex.c @@ -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);