From 835ba5a09054683475dc3822a67eb32233ef307e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 26 Aug 2009 18:55:58 +0200 Subject: [PATCH] Fix possible seg fault in db_get_int_handler in accurate code --- bacula/src/cats/sql_get.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/cats/sql_get.c b/bacula/src/cats/sql_get.c index ba675ea67e..6098bdfa32 100644 --- a/bacula/src/cats/sql_get.c +++ b/bacula/src/cats/sql_get.c @@ -1193,7 +1193,7 @@ bail_out: int db_get_int_handler(void *ctx, int num_fields, char **row) { POOLMEM *ret = (POOLMEM *)ctx; - if (num_fields == 1) { + if (num_fields == 1 && row[0]) { if (ret[0]) { pm_strcat(ret, ","); } -- 2.39.5