]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/util.c
Fix a memory leak.
[bacula/bacula] / bacula / src / lib / util.c
index 35cbb4a7e3ed531a96bd1a996bc2fcb9fbaff5d0..90cf6044a0b67fe1f0122d91322422f326aaf4b6 100644 (file)
@@ -6,7 +6,7 @@
  *   Version $Id$
  */
 /*
-   Copyright (C) 2000-2005 Kern Sibbald
+   Copyright (C) 2000-2006 Kern Sibbald
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
@@ -460,7 +460,7 @@ void make_session_key(char *key, char *seed, int mode)
 
      sprintf(s + strlen(s), "%lu", (unsigned long)getpid());
      sprintf(s + strlen(s), "%lu", (unsigned long)getppid());
-     getcwd(s + strlen(s), 256);
+     (void)getcwd(s + strlen(s), 256);
      sprintf(s + strlen(s), "%lu", (unsigned long)clock());
      sprintf(s + strlen(s), "%lu", (unsigned long)time(NULL));
 #ifdef Solaris