diff options
| author | Anatol Belski <ab@php.net> | 2015-01-22 10:16:13 +0100 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2015-01-22 10:16:13 +0100 |
| commit | 43652d386a753c0a280790525e3593ecb416793c (patch) | |
| tree | 8abf7da4eb5648a1dbf97d13cf98d7de4c653e0c | |
| parent | 91aa340180eccfc15d4a143b54d47b8120f898be (diff) | |
| download | php-git-43652d386a753c0a280790525e3593ecb416793c.tar.gz | |
simplify error handling for dirs as magic
| -rw-r--r-- | ext/fileinfo/libmagic/apprentice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fileinfo/libmagic/apprentice.c b/ext/fileinfo/libmagic/apprentice.c index 1cbe0fce5e..964d756e9d 100644 --- a/ext/fileinfo/libmagic/apprentice.c +++ b/ext/fileinfo/libmagic/apprentice.c @@ -2616,7 +2616,7 @@ apprentice_map(struct magic_set *ms, const char *fn) return to give apprentice_load() a chance. */ if (php_stream_stat_path_ex((char *)fn, 0, &st, NULL) == SUCCESS) { if (st.sb.st_mode & S_IFDIR) { - goto error; + return NULL; } } #endif |
