diff options
-rw-r--r-- | src/main/extractor_plugpath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/extractor_plugpath.c b/src/main/extractor_plugpath.c index e6a9582..157b59c 100644 --- a/src/main/extractor_plugpath.c +++ b/src/main/extractor_plugpath.c | |||
@@ -257,13 +257,14 @@ get_path_from_dyld_image () | |||
257 | { | 257 | { |
258 | const char *path; | 258 | const char *path; |
259 | char *s; | 259 | char *s; |
260 | char *p; | ||
260 | unsigned int i; | 261 | unsigned int i; |
261 | int c; | 262 | int c; |
262 | 263 | ||
263 | c = _dyld_image_count (); | 264 | c = _dyld_image_count (); |
264 | for (i = 0; i < c; i++) | 265 | for (i = 0; i < c; i++) |
265 | { | 266 | { |
266 | if (_dyld_get_image_header (i) != &_mh_dylib_header) | 267 | if (((void *) _dyld_get_image_header (i)) != (void *) &_mh_dylib_header) |
267 | continue; | 268 | continue; |
268 | path = _dyld_get_image_name (i); | 269 | path = _dyld_get_image_name (i); |
269 | if ( (NULL == path) || (0 == strlen (path)) ) | 270 | if ( (NULL == path) || (0 == strlen (path)) ) |