From 1a81d1c7cc7d8e186712832735dd61446b4af0e2 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 3 May 2012 19:43:54 +0000 Subject: [PATCH] parse: fix handling of fragment types --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 0959374..97ce1f8 100644 --- a/parse.c +++ b/parse.c @@ -132,7 +132,7 @@ pkg_fragment_add(pkg_fragment_t *head, const char *string) frag = calloc(sizeof(pkg_fragment_t), 1); - if (*string == '-' && !strncmp(string, "-lib:", 5)) + if (*string == '-' && strncmp(string, "-lib:", 5)) { frag->type = *(string + 1); frag->data = strdup(string + 2);