[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8148 - libmicrohttpd/src/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8148 - libmicrohttpd/src/examples |
Date: |
Fri, 23 Jan 2009 19:09:43 -0700 (MST) |
Author: grothoff
Date: 2009-01-23 19:09:43 -0700 (Fri, 23 Jan 2009)
New Revision: 8148
Modified:
libmicrohttpd/src/examples/querystring_example.c
Log:
better
Modified: libmicrohttpd/src/examples/querystring_example.c
===================================================================
--- libmicrohttpd/src/examples/querystring_example.c 2009-01-24 02:07:09 UTC
(rev 8147)
+++ libmicrohttpd/src/examples/querystring_example.c 2009-01-24 02:09:43 UTC
(rev 8148)
@@ -54,6 +54,8 @@
*ptr = NULL; /* reset when done */
val = MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, "q");
me = malloc (snprintf (NULL, 0, fmt, "q", val) + 1);
+ if (me == NULL)
+ return MHD_NO;
sprintf (me, fmt, "q", val);
response = MHD_create_response_from_data (strlen (me), me, MHD_YES, MHD_NO);
ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8148 - libmicrohttpd/src/examples,
gnunet <=