From bbb31ff46fac33b713dc59063594bbae8e6fd155 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Sun, 9 May 2004 09:22:40 +0000 Subject: [PATCH] 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 --- bacula/src/lib/lex.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5