projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* sbr/fmt_rfc2047.c (decode_rfc2047): Don't close the iconv descriptor if
[mmh]
/
sbr
/
strdup.c
diff --git
a/sbr/strdup.c
b/sbr/strdup.c
index
486b36a
..
ebc29f5
100644
(file)
--- a/
sbr/strdup.c
+++ b/
sbr/strdup.c
@@
-10,6
+10,7
@@
*/
#include <h/mh.h>
+#include <h/utils.h>
char *
@@
-22,8
+23,7
@@
strdup (const char *str)
return NULL;
len = strlen(str) + 1;
- if (!(cp = malloc (len)))
- return NULL;
+ cp = mh_xmalloc (len);
memcpy (cp, str, len);
return cp;
}