]> granicus.if.org Git - file/commit
If we encountered a match (an entry with description) even if we are not
authorChristos Zoulas <christos@zoulas.com>
Tue, 23 Oct 2018 18:34:46 +0000 (18:34 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 23 Oct 2018 18:34:46 +0000 (18:34 +0000)
commite60dc715160ce8023f8248cc9fc243dc4b4581e0
tree6236d6a969c3f6dc23b9a805776f021b5bad3eae
parenta4040a33ba3f58250ca0129c1b430a875375d4ff
If we encountered a match (an entry with description) even if we are not
printing (i.e. we are doing mime or something else), set the return value,
so that we stop searching. This avoids the issue where mime matched later
entries in the magic list, instead of matching nothing (entries with no
mime that would have matched earlier).
src/softmagic.c