]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
small improvement in :any parsing
authorMichael Schroeder <mls@suse.de>
Fri, 18 Oct 2013 10:01:39 +0000 (12:01 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 18 Oct 2013 10:01:39 +0000 (12:01 +0200)
ext/repo_deb.c

index 370050efb44a4e4fa1ac0b832585d40bd58cf45a..6d2c7bda738c5c1ae3e330ecd2f75566782f44b5 100644 (file)
@@ -122,7 +122,7 @@ parseonedep(Pool *pool, char *p)
       while (*p == ' ' || *p == '\t' || *p == '\n')
        p++;
     }
-  if (ne - n > 4 && !strncmp(ne - 4, ":any", 4))
+  if (ne - n > 4 && ne[-4] == ':' && !strncmp(ne - 4, ":any", 4))
     {
       /* multiarch annotation */
       name = pool_strn2id(pool, n, ne - n - 4, 1);