summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r--content/fetchcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c
index c93b6fe73..bd20d12a3 100644
--- a/content/fetchcache.c
+++ b/content/fetchcache.c
@@ -13,6 +13,7 @@
* fetch changes and data is received, the content is updated appropriately.
*/
+#define _GNU_SOURCE /* for strndup */
#include <assert.h>
#include <string.h>
#include <sys/types.h>
@@ -79,7 +80,7 @@ struct content * fetchcache(const char *url,
/* strip fragment identifier */
if ((hash = strchr(url1, '#')) != NULL)
- *hash = NULL;
+ *hash = 0;
LOG(("url %s", url1));