From 5176cae7e28a922fa68aed10902c5ef2c7d705ac Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 4 Jan 2012 12:01:36 +0100 Subject: [PATCH] fix warning --- bacula/src/cats/sqlite.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bacula/src/cats/sqlite.c b/bacula/src/cats/sqlite.c index a859777ff7..0bb0e8533a 100644 --- a/bacula/src/cats/sqlite.c +++ b/bacula/src/cats/sqlite.c @@ -675,7 +675,6 @@ bool B_DB_SQLITE::sql_batch_end(JCR *jcr, const char *error) */ bool B_DB_SQLITE::sql_batch_insert(JCR *jcr, ATTR_DBR *ar) { - size_t len; const char *digest; char ed1[50]; @@ -691,10 +690,10 @@ bool B_DB_SQLITE::sql_batch_insert(JCR *jcr, ATTR_DBR *ar) digest = ar->Digest; } - len = Mmsg(cmd, "INSERT INTO batch VALUES " - "(%u,%s,'%s','%s','%s','%s',%u)", - ar->FileIndex, edit_int64(ar->JobId,ed1), esc_path, - esc_name, ar->attr, digest, ar->DeltaSeq); + Mmsg(cmd, "INSERT INTO batch VALUES " + "(%u,%s,'%s','%s','%s','%s',%u)", + ar->FileIndex, edit_int64(ar->JobId,ed1), esc_path, + esc_name, ar->attr, digest, ar->DeltaSeq); return sql_query(cmd); } -- 2.39.5