]> git.sur5r.net Git - bacula/bacula/commitdiff
fix segfault on redhat4
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 11 Nov 2009 11:25:52 +0000 (12:25 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 11 Nov 2009 11:25:52 +0000 (12:25 +0100)
bacula/src/cats/sql_get.c

index 55d9818496dd052f67c04cfe4f6f21d2e566c88d..5157b87c46272cd3fe324789b47e4b9f68b3d350 100644 (file)
@@ -1224,9 +1224,9 @@ bool db_get_base_file_list(JCR *jcr, B_DB *mdb,
 
 bool db_get_base_jobid(JCR *jcr, B_DB *mdb, JOB_DBR *jr, JobId_t *jobid)
 {
+   POOL_MEM query(PM_FNAME);
    char date[MAX_TIME_LENGTH];
    int64_t id = *jobid = 0;
-   POOL_MEM query(PM_FNAME);
 
 // char clientid[50], filesetid[50];