]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Makefile: Make `make get-git` work under OpenBSD.
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 6c7e8111c4cf31456983fe9f946cd5eb8410c3c8..ad62d10887e8ecdda4bb43fb86e349c51f8c8afb 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -21,7 +21,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);
 }