summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@chaosdorf.de>2017-04-02 15:06:11 +0200
committerGitHub <noreply@github.com>2017-04-02 15:06:11 +0200
commit3b23637b1cc27120febcec6d8a3fea4cda9c1bda (patch)
treed01bce34f132e67c456f6a2caafd9fa2f0fb6ef2
parentd10e92219d10b0fbbd17fc856d4eb692dec20516 (diff)
parentb95c1ea6b2ff06ed01bee93a623141b2ab692470 (diff)
Merge pull request #290 from stoeckmann/emalloc
Check malloc return value for NULL.
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index fdd4c22..e02d807 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -122,7 +122,7 @@ char *estrjoin(const char *separator, ...)
s = va_arg(args, char *);
}
va_end(args);
- string = malloc(sizeof(char) * (len + 1));
+ string = _emalloc(sizeof(char) * (len + 1));
*string = 0;
va_start(args, separator);