From 34923a94eccee1bb2acfef050b9ab0c3fc62899c Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Fri, 22 May 2009 23:05:34 +0700 Subject: [PATCH] source{3,4}/lib/ldb/ldb_sqlite3/base160.c(lsqlite3_base160Next): fixed syntax error. Found by cppcheck: [./source3/lib/ldb/ldb_sqlite3/base160.c:125]: (error) Invalid number of character ((). Can't process file. [./source4/lib/ldb/ldb_sqlite3/base160.c:125]: (error) Invalid number of character ((). Can't process file. --- source3/lib/ldb/ldb_sqlite3/base160.c | 2 +- source4/lib/ldb/ldb_sqlite3/base160.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/lib/ldb/ldb_sqlite3/base160.c b/source3/lib/ldb/ldb_sqlite3/base160.c index 423e2b6..7ad39f7 100644 --- a/source3/lib/ldb/ldb_sqlite3/base160.c +++ b/source3/lib/ldb/ldb_sqlite3/base160.c @@ -122,7 +122,7 @@ lsqlite3_base160Next(char base160[]) * We need a minimum of four digits, and we will always get a multiple of * four digits. */ - if (len = strlen(pBase160)) >= 4) + if ((len = strlen(pBase160)) >= 4) { pBase160 += strlen(pBase160) - 1; diff --git a/source4/lib/ldb/ldb_sqlite3/base160.c b/source4/lib/ldb/ldb_sqlite3/base160.c index 423e2b6..7ad39f7 100644 --- a/source4/lib/ldb/ldb_sqlite3/base160.c +++ b/source4/lib/ldb/ldb_sqlite3/base160.c @@ -122,7 +122,7 @@ lsqlite3_base160Next(char base160[]) * We need a minimum of four digits, and we will always get a multiple of * four digits. */ - if (len = strlen(pBase160)) >= 4) + if ((len = strlen(pBase160)) >= 4) { pBase160 += strlen(pBase160) - 1; -- 1.6.3.1