From: Sebastian Harl Date: Tue, 29 Jul 2014 16:58:37 +0000 (+0200) Subject: store_lookup: Make sure to always initialize the buffer in tostring(). X-Git-Tag: sysdb-0.3.0~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52e68c096ba26c0620f78718054b20dc6c0d5306;p=sysdb.git store_lookup: Make sure to always initialize the buffer in tostring(). --- diff --git a/src/core/store_lookup.c b/src/core/store_lookup.c index ed58591..476e0e7 100644 --- a/src/core/store_lookup.c +++ b/src/core/store_lookup.c @@ -508,6 +508,8 @@ cond_tostring(sdb_store_matcher_t *m, char *buf, size_t buflen) value_str); sdb_data_free_datum(&value); } + else + snprintf(buf, buflen, ""); return buf; } /* cond_tostring */