summaryrefslogtreecommitdiffstats
path: root/src/H5MM.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5MM.c')
-rw-r--r--src/H5MM.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5MM.c b/src/H5MM.c
index 645798e..3a1d392 100644
--- a/src/H5MM.c
+++ b/src/H5MM.c
@@ -129,13 +129,12 @@ H5MM_xrealloc(void *mem, size_t size)
*
*-------------------------------------------------------------------------
*/
-char *
+char *
H5MM_xstrdup(const char *s)
{
char *mem;
- if (!s)
- return NULL;
+ if (!s) return NULL;
mem = H5MM_xmalloc(HDstrlen(s) + 1);
HDstrcpy(mem, s);
return mem;