diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/fetchcache.c | 3 |
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)); |