Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Reynaldo H. Verdejo Pinochet authored on 2015/07/27 10:29:47... | ... |
@@ -316,12 +316,12 @@ static char *ctime1(char *buf2, int buf_size) |
316 | 316 |
static void http_vlog(const char *fmt, va_list vargs) |
317 | 317 |
{ |
318 | 318 |
static int print_prefix = 1; |
319 |
+ char buf[32]; |
|
319 | 320 |
|
320 | 321 |
if (!logfile) |
321 | 322 |
return; |
322 | 323 |
|
323 | 324 |
if (print_prefix) { |
324 |
- char buf[32]; |
|
325 | 325 |
ctime1(buf, sizeof(buf)); |
326 | 326 |
fprintf(logfile, "%s ", buf); |
327 | 327 |
} |