]> git.sur5r.net Git - bacula/bacula/commitdiff
- small _("print") fix for translation.
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 9 Apr 2006 13:59:12 +0000 (13:59 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 9 Apr 2006 13:59:12 +0000 (13:59 +0000)
- 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

index a9925f2cd4b6c34e4cae1683b1ae47ad2df94d25..ab0c3224a2dd79faf332225fef67a67c80d8deea 100644 (file)
@@ -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 */
       }
    }