]> granicus.if.org Git - php/commitdiff
fix compile error on IRIX
authorStefan Esser <sesser@php.net>
Mon, 23 Dec 2002 08:50:05 +0000 (08:50 +0000)
committerStefan Esser <sesser@php.net>
Mon, 23 Dec 2002 08:50:05 +0000 (08:50 +0000)
ext/mime_magic/mime_magic.c

index bdb1dab794cf2635307f57dfdb04fbd064eff1cf..86c650c699f2348a7ff5d588596845048cab6dac 100644 (file)
@@ -358,7 +358,7 @@ static int apprentice(void)
     fname = conf->magicfile; /* todo cwd? */
     f = fopen(fname, "rb");
     if (f == NULL) {
-               (int) conf->magic = -1;
+               *(int *)&conf->magic = -1;
                return -1;
     }