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:
@@ -86,6 +86,7 @@ roken_get_shell(char *shell, size_t shellsz)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
errno = 0;
|
||||||
return "/bin/sh";
|
return "/bin/sh";
|
||||||
#else
|
#else
|
||||||
/* Windows */
|
/* Windows */
|
||||||
@@ -96,9 +97,9 @@ roken_get_shell(char *shell, size_t shellsz)
|
|||||||
errno = ERANGE;
|
errno = ERANGE;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user