aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/manifest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/manifest.c b/src/manifest.c
index f384e8c..878ab5b 100644
--- a/src/manifest.c
+++ b/src/manifest.c
@@ -204,8 +204,12 @@ int manifest_write(Manifest *info, const char *pkgdir) {
strcat(path_manifest, SPM_MANIFEST_FILENAME);
}
- char *asdfasd = path_manifest;
FILE *fp = fopen(path_manifest, "w+");
+ if (fp == NULL) {
+ perror(path_manifest);
+ fprintf(SYSERROR);
+ return -1;
+ }
#ifdef _DEBUG
if (SPM_GLOBAL.verbose) {
for (size_t i = 0; i < info->records; i++) {