From a27a1640d4fa487ec43c5caba6f549d65d9d348a Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 9 Nov 2017 02:27:42 +0100 Subject: [PATCH] Check for more errors --- src/makefile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index f03c643..a2a3779 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -80,9 +80,9 @@ int makefile(Configure * configure, String const * directory, configArray * ca, FILE * fp = NULL; int ret = 0; - makefile = string_new(directory); - string_append(&makefile, "/"); /* FIXME check for errors */ - string_append(&makefile, MAKEFILE); + if((makefile = string_new_append(directory, "/", MAKEFILE, NULL)) + == NULL) + return -1; if(!(configure->prefs->flags & PREFS_n) && (fp = fopen(makefile, "w")) == NULL) ret = configure_error(makefile, 1);