Check for more errors
This commit is contained in:
parent
fc5ce3b511
commit
a27a1640d4
@ -80,9 +80,9 @@ int makefile(Configure * configure, String const * directory, configArray * ca,
|
|||||||
FILE * fp = NULL;
|
FILE * fp = NULL;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
makefile = string_new(directory);
|
if((makefile = string_new_append(directory, "/", MAKEFILE, NULL))
|
||||||
string_append(&makefile, "/"); /* FIXME check for errors */
|
== NULL)
|
||||||
string_append(&makefile, MAKEFILE);
|
return -1;
|
||||||
if(!(configure->prefs->flags & PREFS_n)
|
if(!(configure->prefs->flags & PREFS_n)
|
||||||
&& (fp = fopen(makefile, "w")) == NULL)
|
&& (fp = fopen(makefile, "w")) == NULL)
|
||||||
ret = configure_error(makefile, 1);
|
ret = configure_error(makefile, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user