lib/roken: roken_get_shell unreachable code warning

When WIN32 is undefined an unreachable code warning was generated
since "/bin/sh" is returned as the default resposne.

Change-Id: I757c9d05db62c1d52fee0e510259098d73273a84
This commit is contained in:
Jeffrey Altman
2018-12-28 14:31:21 -05:00
parent 51c2a5831a
commit 134b53ead1

View File

@@ -86,6 +86,7 @@ roken_get_shell(char *shell, size_t shellsz)
}
}
#endif
errno = 0;
return "/bin/sh";
#else
/* Windows */
@@ -96,9 +97,9 @@ roken_get_shell(char *shell, size_t shellsz)
errno = ERANGE;
return NULL;
}
#endif
errno = 0;
return NULL;
#endif
}
/**