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

main
Tom MTT. 1 year ago
parent 38b6f2ddc5
commit 4b3b46e7ab

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

@ -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";

Loading…
Cancel
Save