From b51258092b26210c592d36b6846a3d1aa61e1e9c Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Mon, 5 Apr 2010 16:28:09 +0200 Subject: [PATCH] Fix typo --- bacula/src/cats/ingres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/cats/ingres.c b/bacula/src/cats/ingres.c index 2a450427e7..3553f37953 100755 --- a/bacula/src/cats/ingres.c +++ b/bacula/src/cats/ingres.c @@ -554,14 +554,14 @@ int my_ingres_query(B_DB *mdb, const char *query) /* * See if we are getting a transaction start or end. */ - if (strcasecmp(new_query, "BEGIN") != NULL) { + if (!strcasecmp(new_query, "BEGIN")) { /* * Start of a transaction. */ Dmsg0(500,"my_ingres_query: Start of transaction\n"); mdb->transaction = true; return 0; - } else if (strcasecmp(new_query, "COMMIT") != NULL) { + } else if (!strcasecmp(new_query, "COMMIT")) { /* * End of a transaction. */ -- 2.39.2