Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-11-10 18:21:19 -0600
committerDan McGee <dan@archlinux.org>2009-11-10 18:21:19 -0600
commit7ae15768e5558def8bdf88fe6c5c49fa6c9b08ad (patch)
tree34ff2c542ed9b7d4519644ece5c1452e226b7f3e /lib
parent3f7cc83e0df79f24c545924d7b38e9fa22302b2a (diff)
parente09253d15b879f3375d57efd656e687a984ebc36 (diff)
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/util.c3
1 files changed, 2 insertions, 1 deletions
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)) {