Skip to content

Commit 8a5a4b0

Browse files
committed
Coding style
1 parent 4f8e837 commit 8a5a4b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

libopenarc/arc-util.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,15 @@ arc_dstring_blank(struct arc_dstring *dstr)
430430
** Return value:
431431
** a copy of s1.
432432
*/
433+
433434
char *
434435
arc_strdup(const char *s1)
435436
{
436-
char *s = ARC_MALLOC(strlen(s1)+1);
437-
if (s)
438-
memcpy(s, s1, strlen(s1)+1);
437+
char *s;
438+
439+
s = ARC_MALLOC(strlen(s1) + 1);
440+
if (s != NULL)
441+
memcpy(s, s1, strlen(s1) + 1);
439442
return s;
440443
}
441444

0 commit comments

Comments
 (0)