aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-12-11 11:00:44 +0000
committerdrh <drh@noemail.net>2013-12-11 11:00:44 +0000
commita9ab481fca8e4828771c098d8ce77a0efd52684a (patch)
treef8e225c7d8a58eedf8aed93ee04711bef202a410 /src/func.c
parent53cd96464894a49b22899455f20f76b86aef5acf (diff)
downloadsqlite-a9ab481fca8e4828771c098d8ce77a0efd52684a.tar.gz
sqlite-a9ab481fca8e4828771c098d8ce77a0efd52684a.zip
Fix harmless compiler warnings.
FossilOrigin-Name: a7e5fcd66659750eb2f4675082df324e7cf35427
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c
index 46c606ac0..951af97b3 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1511,11 +1511,11 @@ static void groupConcatStep(
zSep = ",";
nSep = 1;
}
- sqlite3StrAccumAppend(pAccum, zSep, nSep);
+ if( nSep ) sqlite3StrAccumAppend(pAccum, zSep, nSep);
}
zVal = (char*)sqlite3_value_text(argv[0]);
nVal = sqlite3_value_bytes(argv[0]);
- sqlite3StrAccumAppend(pAccum, zVal, nVal);
+ if( nVal ) sqlite3StrAccumAppend(pAccum, zVal, nVal);
}
}
static void groupConcatFinalize(sqlite3_context *context){