changeset 238:d3ab9d263409

Initialize return value variable.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Feb 2016 16:01:15 +0200
parents c55ebc438243
children 10f596441e75
files th_string.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Tue Feb 16 16:01:02 2016 +0200
+++ b/th_string.c	Tue Feb 16 16:01:15 2016 +0200
@@ -228,7 +228,7 @@
 
 int th_vprintf_do(void *ctx, int (*vputch)(void *ctx, const char ch), const char *fmt, va_list ap)
 {
-    int ret;
+    int ret = 0;
 
     while (*fmt)
     {