From: Kern Sibbald Date: Sat, 10 Apr 2010 10:14:33 +0000 (+0200) Subject: Revert "Program currval retrieval somewhat more robust." X-Git-Tag: Release-5.0.2~73 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b68bcc64a44e42ae9b57220a516dd558b9419c9f;p=bacula%2Fbacula Revert "Program currval retrieval somewhat more robust." This reverts commit 2d02e4b0c13e2f26b138ebb411f6f5e253c91d4d. --- diff --git a/bacula/src/cats/ingres.c b/bacula/src/cats/ingres.c index b8a85ee5d5..af3428b774 100755 --- a/bacula/src/cats/ingres.c +++ b/bacula/src/cats/ingres.c @@ -647,7 +647,6 @@ static int my_ingres_currval(B_DB *mdb, const char *table_name) char sequence[64]; char query[256]; - char *currval; INGresult *result; int id = 0; @@ -667,10 +666,7 @@ static int my_ingres_currval(B_DB *mdb, const char *table_name) Dmsg0(500, "exec done"); - currval = INGgetvalue(result, 0, 0); - if (currval) { - id = atoi(currval); - } + id = atoi(INGgetvalue(result, 0, 0)); bail_out: INGclear(result);