always check absolutify_path return

This commit is contained in:
Omar Polo 2020-12-21 15:42:06 +01:00
parent 4f12842dfe
commit 51d876f030
No known key found for this signature in database
GPG Key ID: 35F98C96A1786F0D
1 changed files with 3 additions and 1 deletions

4
gmid.c
View File

@ -1035,7 +1035,9 @@ main(int argc, char **argv)
connected_clients = 0;
dir = absolutify_path("docs");
if ((dir = absolutify_path("docs")) == NULL)
err(1, "absolutify_path");
cgi = NULL;
port = 1965;
foreground = 0;