Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
mskucherawy committed Jun 18, 2018
1 parent 4f8e837 commit 8a5a4b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libopenarc/arc-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,15 @@ arc_dstring_blank(struct arc_dstring *dstr)
** Return value:
** a copy of s1.
*/

char *
arc_strdup(const char *s1)
{
char *s = ARC_MALLOC(strlen(s1)+1);
if (s)
memcpy(s, s1, strlen(s1)+1);
char *s;

s = ARC_MALLOC(strlen(s1) + 1);
if (s != NULL)
memcpy(s, s1, strlen(s1) + 1);
return s;
}

Expand Down

0 comments on commit 8a5a4b0

Please sign in to comment.