diff options
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 /src | |
parent | 3f7cc83e0df79f24c545924d7b38e9fa22302b2a (diff) | |
parent | e09253d15b879f3375d57efd656e687a984ebc36 (diff) | |
download | pacman-7ae15768e5558def8bdf88fe6c5c49fa6c9b08ad.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c index 1143befd..115b3673 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -122,7 +122,8 @@ int rmrf(const char *path) return(1); } - if((dirp = opendir(path)) == (DIR *)-1) { + dirp = opendir(path); + if(!dirp) { return(1); } for(dp = readdir(dirp); dp != NULL; dp = readdir(dirp)) { |