summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mime_magic/mime_magic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c
index b127a72228..cd4914a040 100644
--- a/ext/mime_magic/mime_magic.c
+++ b/ext/mime_magic/mime_magic.c
@@ -359,10 +359,9 @@ static int apprentice(void)
char line[BUFSIZ + 1];
int errs = 0;
int lineno;
- TSRMLS_FETCH();
-
char *fname;
magic_server_config_rec *conf = &mime_global;
+ TSRMLS_FETCH();
fname = conf->magicfile; /* todo cwd? */
f = fopen(fname, "rb");