logger: initialize socket credentials contol union
Addresses: https://github.com/util-linux/util-linux/issues/2336 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
0904cff4a5
commit
3a4d70419c
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ static void write_output(struct logger_ctl *ctl, const char *const msg)
|
|||
union {
|
||||
struct cmsghdr cmh;
|
||||
char control[CMSG_SPACE(sizeof(struct ucred))];
|
||||
} cbuf;
|
||||
} cbuf = { .control = { 0 } };
|
||||
#endif
|
||||
|
||||
/* 4) add extra \n to make sure message is terminated */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue