From 6417e12cde11ac083e8f7a087be4df305e0b3b9e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 9 Apr 2006 13:59:12 +0000 Subject: [PATCH] - small _("print") fix for translation. - cleanup one debug line (using lf->name before testing if lf was NULL) git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2892 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/lex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/lib/lex.c b/bacula/src/lib/lex.c index a9925f2cd4..ab0c3224a2 100644 --- a/bacula/src/lib/lex.c +++ b/bacula/src/lib/lex.c @@ -103,10 +103,11 @@ LEX *lex_close_file(LEX *lf) { LEX *of; - Dmsg1(2000, "Close lex file: %s\n", lf->fname); if (lf == NULL) { Emsg0(M_ABORT, 0, _("Close of NULL file\n")); } + Dmsg1(2000, "Close lex file: %s\n", lf->fname); + of = lf->next; fclose(lf->fd); Dmsg1(2000, "Close cfg file %s\n", lf->fname); @@ -289,7 +290,7 @@ static uint32_t scan_pint(LEX *lf, char *str) errno = 0; val = str_to_int64(str); if (errno != 0 || val < 0) { - scan_err1(lf, _("expected a postive integer number, got: %s"), str); + scan_err1(lf, _("expected a positive integer number, got: %s"), str); /* NOT REACHED */ } } -- 2.39.5