diff options
Diffstat (limited to 'main/stdtime')
-rw-r--r-- | main/stdtime/localtime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index f7b4bd005..5ca43b818 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -2304,6 +2304,7 @@ int ast_strftime_locale(char *buf, size_t len, const char *tmp, const struct ast long fraction; const char *prevlocale; + buf[0] = '\0';/* Ensure the buffer is initialized. */ if (!format) { return -1; } |