]> granicus.if.org Git - php/commitdiff
silence compile warning
authorAntony Dovgal <tony2001@php.net>
Thu, 24 Jul 2008 14:45:53 +0000 (14:45 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 24 Jul 2008 14:45:53 +0000 (14:45 +0000)
ext/fileinfo/libmagic/apprentice.c

index 3ebab46fcb738509a422d379eaf23b9e436c30e3..e79d8b9468c9bc7df6b2170c744d8d0cb13d83c7 100644 (file)
@@ -664,7 +664,7 @@ apprentice_load(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp,
        if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
                dir = opendir(fn);
                if (dir) {
-                       while (d = readdir(dir)) {
+                       while ((d = readdir(dir))) {
                                snprintf(subfn, sizeof(subfn), "%s/%s",
                                    fn, d->d_name);
                                if (stat(subfn, &st) == 0 && S_ISREG(st.st_mode)) {