aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2003-09-29 13:14:02 +0000
committerJason Woodward2003-09-29 13:14:02 +0000
commit95bd87e915ec9391a056019ccf785aec70e33bc0 (patch)
treeca3540db8e1ea8a4c85cda5e24edeb9d6f92b2ef
parentabed1162d037aa21b67e6b686adc1bea6776b095 (diff)
downloadslapt-get-95bd87e915ec9391a056019ccf785aec70e33bc0.tar.gz
fixed return from download_pkg() on download error to return null
-rw-r--r--src/curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/curl.c b/src/curl.c
index 449b714..db4d545 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -214,7 +214,7 @@ char *download_pkg(const rc_config *global_config,pkg_info_t *pkg){
printf("Done\n");
#endif
}else{
- return file_name;
+ return NULL;
}
fclose(fh);