fix(feuille.c): initialize uid and gid to remove useless warnings
This commit is contained in:
parent
38b6f2ddc5
commit
4b3b46e7ab
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
# feuille version
|
# feuille version
|
||||||
VERSION = 1.19.1
|
VERSION = 1.19.2
|
||||||
|
|
||||||
# paths (customize them to fit your system)
|
# paths (customize them to fit your system)
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
|
@ -326,7 +326,7 @@ int main(int argc, char *argv[])
|
||||||
chdir(path);
|
chdir(path);
|
||||||
|
|
||||||
/* user checks */
|
/* user checks */
|
||||||
int uid, gid;
|
int uid = 0, gid = 0;
|
||||||
if (getuid() == 0) {
|
if (getuid() == 0) {
|
||||||
if (strlen(settings.user) == 0)
|
if (strlen(settings.user) == 0)
|
||||||
settings.user = "nobody";
|
settings.user = "nobody";
|
||||||
|
|
Reference in a new issue