networkd: Initialize variable to NULL
If any number of arguments are given, _cleanup_manager_free_ is used with unitialized memory causing a crash.
This commit is contained in:
parent
ff70c61b6f
commit
e877666c15
|
@ -25,7 +25,7 @@
|
|||
#include "networkd.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
_cleanup_manager_free_ Manager *m;
|
||||
_cleanup_manager_free_ Manager *m = NULL;
|
||||
int r;
|
||||
|
||||
log_set_target(LOG_TARGET_AUTO);
|
||||
|
|
Loading…
Reference in a new issue