summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-07-17 23:58:35 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-07-17 23:58:35 +0100
commite8ceb44bbf70735be4590e47541b863fd82fdc33 (patch)
tree90ba1fc3de4e3735a3aa5725ac93ad18180701ab
parenta34b3ac03010bbdd5375b93a8e4f69a8642ac631 (diff)
insanity-http-server: fix compiler warning
Fix 'contents may be used uninitialized in this function' warning.
-rw-r--r--tests/insanity-http-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/insanity-http-server.c b/tests/insanity-http-server.c
index eb7f826..27255be 100644
--- a/tests/insanity-http-server.c
+++ b/tests/insanity-http-server.c
@@ -425,7 +425,7 @@ do_get (InsanityHttpServer * srv, SoupServer * server, SoupMessage * msg,
}
if (msg->method == SOUP_METHOD_GET) {
- const char *contents;
+ const char *contents = NULL;
SoupRange *ranges = NULL;
int nranges = 0;
goffset start, end;