Add missing return value check.

This commit is contained in:
Andreas Schneider 2008-04-30 10:39:08 +02:00
parent 8503dcbb1d
commit dc5b9853a7

View File

@ -228,6 +228,9 @@ int csync_journal_drop_tables(CSYNC *ctx) {
result = csync_journal_query(ctx,
"DROP TABLE IF EXISTS metadata;"
);
if (result == NULL) {
return -1;
}
c_strlist_destroy(result);
return 0;