index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2009-11-10 18:21:19 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-11-10 18:21:19 -0600 |
commit | 7ae15768e5558def8bdf88fe6c5c49fa6c9b08ad (patch) | |
tree | 34ff2c542ed9b7d4519644ece5c1452e226b7f3e /lib | |
parent | 3f7cc83e0df79f24c545924d7b38e9fa22302b2a (diff) | |
parent | e09253d15b879f3375d57efd656e687a984ebc36 (diff) |
-rw-r--r-- | lib/libalpm/util.c | 3 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index d9108096..cf2d6236 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -389,7 +389,8 @@ int _alpm_rmrf(const char *path) } } } else { - if((dirp = opendir(path)) == (DIR *)-1) { + dirp = opendir(path); + if(!dirp) { return(1); } for(dp = readdir(dirp); dp != NULL; dp = readdir(dirp)) { |