]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Merge branch 'stable'
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 4f2c752fd0d2f88bfa9f0b05e672588e3adfd99a..d6146e2270737806513b0ceca0e187475f93c121 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -22,7 +22,7 @@ void add_mimetype(const char *name, const char *value)
 {
        struct string_list_item *item;
 
-       item = string_list_insert(xstrdup(name), &ctx.cfg.mimetypes);
+       item = string_list_insert(&ctx.cfg.mimetypes, xstrdup(name));
        item->util = xstrdup(value);
 }