summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c
index af9850145..5615b882d 100644
--- a/content/content.c
+++ b/content/content.c
@@ -145,7 +145,7 @@ void content_set_type(struct content *c, content_type type, char* mime_type)
assert(type < CONTENT_UNKNOWN);
LOG(("content %s, type %i", c->url, type));
c->type = type;
- c->mime_type = strdup(mime_type);
+ c->mime_type = xstrdup(mime_type);
c->status = CONTENT_STATUS_LOADING;
content_broadcast(c, CONTENT_MSG_LOADING, 0);
handler_map[type].create(c);