mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
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:
committed by
Tom Gundersen
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);
|
||||
|
||||
Reference in New Issue
Block a user