From 6dea751d65a3c6db3dc00ca3cc1e9142e3963660 Mon Sep 17 00:00:00 2001 From: brenosilva Date: Thu, 8 Mar 2012 21:20:18 +0000 Subject: [PATCH] Fix mlogc compilation error on windows --- mlogc/mlogc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mlogc/mlogc.c b/mlogc/mlogc.c index 8a30f091..edb5b962 100644 --- a/mlogc/mlogc.c +++ b/mlogc/mlogc.c @@ -422,11 +422,12 @@ static int read_queue_entries(apr_file_t *fd, apr_time_t *queue_time) char linebuf[4100]; int line_count = -1; int line_size = 0; + apr_status_t rc = 0; + char *p = NULL; for(;;) { memset(linebuf, 0, 4100); - apr_status_t rc = apr_file_gets(linebuf, 4096, fd); - char *p; + rc = apr_file_gets(linebuf, 4096, fd); if (rc == APR_EOF) break; if (rc != APR_SUCCESS) {