Skip to content

Commit

Permalink
libflux/module: fixup leftover xstrdup after rebase to master
Browse files Browse the repository at this point in the history
  • Loading branch information
grondo committed May 13, 2017
1 parent f238ad9 commit e955b6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/libflux/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,13 @@ static char *modfind (const char *dirpath, const char *modname)

char *flux_modfind (const char *searchpath, const char *modname)
{
char *cpy = xstrdup (searchpath);
char *cpy = strdup (searchpath);
char *dirpath, *saveptr = NULL, *a1 = cpy;
char *modpath = NULL;

if (!cpy)
return NULL;

while ((dirpath = strtok_r (a1, ":", &saveptr))) {
if ((modpath = modfind (dirpath, modname)))
break;
Expand Down

0 comments on commit e955b6d

Please sign in to comment.