]> diplodocus.org Git - nmh/blobdiff - uip/mkstemp.c
Alter HasSuffixC()'s char * to be const.
[nmh] / uip / mkstemp.c
index 259c3edd39de5b4c28e841de477fb4c6f93a7058..f4215c0804526e864c4c84b91febf6923d4817a4 100644 (file)
@@ -109,10 +109,10 @@ build_template(const char *directory, const char *prefix, const char *suffix) {
         template[len-1] = '\0';
 
         return template;
-    } else {
-        perror("malloc");
-        return NULL;
     }
+
+    perror("malloc");
+    return NULL;
 }