From 4337582a644d31b1e230b8b0c801f7f10c950c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 19 Jun 2011 10:28:51 -0700 Subject: [PATCH] add missing break, quiet clang analyzer --- lib/roken/strftime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/strftime.c b/lib/roken/strftime.c index d95b88c1b..447c15543 100644 --- a/lib/roken/strftime.c +++ b/lib/roken/strftime.c @@ -286,7 +286,7 @@ strftime (char *buf, size_t maxsize, const char *format, "%02d:%02d", tm->tm_hour, tm->tm_min); - + break; case 's' : ret = snprintf (buf, maxsize - n, "%d", (int)mktime(rk_UNCONST(tm))); @@ -392,6 +392,6 @@ strftime (char *buf, size_t maxsize, const char *format, ++n; } } - *buf++ = '\0'; + *buf = '\0'; return n; }