summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2020-06-08 19:58:36 +0000
committerChristos Zoulas <christos@zoulas.com>2020-06-08 19:58:36 +0000
commitc36e3483ac447b603c9e383d188aa72e04f237f7 (patch)
treefd84d3c471bd5f39a28cc2ccd416c1cbcc40ef45
parentdc36790a1ad9207022830da4106dae549e397745 (diff)
downloadfile-git-c36e3483ac447b603c9e383d188aa72e04f237f7.tar.gz
subtype_mime was used eons ago for the built-in troff, fortran and keyword
tests. These have been eliminated so there is no need for it anymore. Found by static analysis (Steve Grubb)
-rw-r--r--src/ascmagic.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ascmagic.c b/src/ascmagic.c
index ed03d3c6..9d383be3 100644
--- a/src/ascmagic.c
+++ b/src/ascmagic.c
@@ -35,7 +35,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: ascmagic.c,v 1.106 2020/06/06 15:33:29 christos Exp $")
+FILE_RCSID("@(#)$File: ascmagic.c,v 1.107 2020/06/08 19:58:36 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -115,7 +115,6 @@ file_ascmagic_with_encoding(struct magic_set *ms,
int need_separator = 0;
const char *subtype = NULL;
- const char *subtype_mime = NULL;
int has_escapes = 0;
int has_backspace = 0;
@@ -225,10 +224,6 @@ file_ascmagic_with_encoding(struct magic_set *ms,
}
if (need_separator && file_separator(ms) == -1)
goto done;
- }
- if (subtype_mime) {
- if (file_printf(ms, "%s", subtype_mime) == -1)
- goto done;
} else {
if (file_printf(ms, "text/plain") == -1)
goto done;