index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/server.c | 4 |
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c index 90466e32..f2e4afdf 100644 --- a/lib/libalpm/server.c +++ b/lib/libalpm/server.c @@ -224,6 +224,10 @@ int _alpm_downloadfiles_forreal(pmlist_t *servers, const char *localpath, server->s_url->offset = (off_t)0; dltotal_bytes = 0; localf = fopen(output, "w"); + if(localf == NULL) { /* still null? */ + _alpm_log(PM_LOG_ERROR, _("cannot write to file '%s'"), output); + return -1; + } } /* Progress 0 - initialize */ |