Skip to content

Commit

Permalink
mxqkill: Add missing initialization
Browse files Browse the repository at this point in the history
If the -u option is not given, passwd will not be set in the args
evaluation loop, yet we use `if (!passwd) {` later in the code.

Initialze pointer.
  • Loading branch information
donald committed Feb 21, 2022
1 parent 922a46b commit 7bd4b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxqkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ int main(int argc, char *argv[])
struct mxq_group group;

uid_t ruid, euid, suid;
struct passwd *passwd;
struct passwd *passwd = NULL;

int res;

Expand Down

0 comments on commit 7bd4b22

Please sign in to comment.