]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/alloc.c
Apply fix from Martin Simmons to clear structure before
[bacula/bacula] / bacula / src / lib / alloc.c
index f65c94236e4c2ffc0b8b7e933bd1f704090d4c3a..8de592cf1dc4ec5f49549dfff2125ab192904358 100644 (file)
@@ -2,10 +2,11 @@
 
        Error checking memory allocator
 
+     Version $Id$
 */
 
 /*
-   Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+   Copyright (C) 2000-2004 Kern Sibbald and John Walker
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -51,8 +52,8 @@ void *sm_alloc(char *fname, int lineno, unsigned int nbytes)
        if ((buf = sm_malloc(fname, lineno, nbytes)) != NULL) {
           return buf;
        }
-        V fprintf(stderr, "\nBoom!!!  Memory capacity exceeded.\n");
-        V fprintf(stderr, "  Requested %u bytes at line %d of %s.\n",
+       V fprintf(stderr, "\nBoom!!!  Memory capacity exceeded.\n");
+       V fprintf(stderr, "  Requested %u bytes at line %d of %s.\n",
           nbytes, lineno, fname);
        abort();
        /*NOTREACHED*/
@@ -68,8 +69,8 @@ void *alloc(unsigned int nbytes)
        if ((buf = malloc(nbytes)) != NULL) {
           return buf;
        }
-        V fprintf(stderr, "\nBoom!!!  Memory capacity exceeded.\n");
-        V fprintf(stderr, "  Requested %u bytes.\n", nbytes);
+       V fprintf(stderr, "\nBoom!!!  Memory capacity exceeded.\n");
+       V fprintf(stderr, "  Requested %u bytes.\n", nbytes);
        abort();
        /*NOTREACHED*/
 }