author | truebrain |
Tue, 10 Jun 2008 19:11:30 +0000 | |
branch | noai |
changeset 10900 | 90b1d2fbb899 |
parent 10899 | 126faeece8b6 |
child 10901 | d1a6a2dff88e |
--- a/src/ai/ai_squirrel.cpp Tue Jun 10 19:05:12 2008 +0000 +++ b/src/ai/ai_squirrel.cpp Tue Jun 10 19:11:30 2008 +0000 @@ -54,7 +54,7 @@ } if (sb.st_mode & S_IFREG && !library_dir) { char *ext = strrchr(d_name, '.'); - if (ext != NULL && strcasecmp(ext, ".tar") != 0) continue; + if (ext == NULL || strcasecmp(ext, ".tar") != 0) continue; /* Create the full path to the tarfile */ char tarname[MAX_PATH];