add missing break, quiet clang analyzer

This commit is contained in:
Love Hörnquist Åstrand
2011-06-19 10:28:51 -07:00
parent e54d07a9b6
commit 4337582a64

View File

@@ -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;
}