Fix potential null passed to function expecting nonnull (#1373)

pull/1375/head
Pavel Punsky 2 years ago committed by GitHub
parent 7ecfb537e9
commit f8e9892d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/apps/relay/dbdrivers/dbd_sqlite.c

@ -156,6 +156,7 @@ static void fix_user_directory(char *dir0) {
struct passwd *pwd = getpwuid(getuid());
if (!pwd) {
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Cannot figure out the user's HOME directory (1)\n");
return;
} else {
home = pwd->pw_dir;
if (!home) {

Loading…
Cancel
Save