parse: fix handling of fragment types

feature/tap-sh
William Pitcock 2012-05-03 19:43:54 +00:00
parent b0521ec9d8
commit 1a81d1c7cc
1 changed files with 1 additions and 1 deletions

View File

@ -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);