fix(feuille.c): initialize uid and gid to remove useless warnings

This commit is contained in:
Tom MTT. 2022-11-29 14:28:16 +01:00
parent 38b6f2ddc5
commit 4b3b46e7ab
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
# feuille version
VERSION = 1.19.1
VERSION = 1.19.2
# paths (customize them to fit your system)
PREFIX = /usr/local

View file

@ -326,7 +326,7 @@ int main(int argc, char *argv[])
chdir(path);
/* user checks */
int uid, gid;
int uid = 0, gid = 0;
if (getuid() == 0) {
if (strlen(settings.user) == 0)
settings.user = "nobody";