1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00

silence compile warning

This commit is contained in:
Antony Dovgal
2008-07-24 14:45:53 +00:00
parent 8e24e64882
commit 54e1d048cd

View 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)) {