mirror of
https://github.com/coturn/coturn.git
synced 2025-10-27 13:00:59 +01:00
Fix potential null passed to function expecting nonnull (#1373)
This commit is contained in:
parent
7ecfb537e9
commit
f8e9892d3e
@ -156,6 +156,7 @@ static void fix_user_directory(char *dir0) {
|
|||||||
struct passwd *pwd = getpwuid(getuid());
|
struct passwd *pwd = getpwuid(getuid());
|
||||||
if (!pwd) {
|
if (!pwd) {
|
||||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Cannot figure out the user's HOME directory (1)\n");
|
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Cannot figure out the user's HOME directory (1)\n");
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
home = pwd->pw_dir;
|
home = pwd->pw_dir;
|
||||||
if (!home) {
|
if (!home) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user