]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkctl.c
networkctl: fix uninitialized variable
authorRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 30 May 2015 08:51:41 +0000 (10:51 +0200)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 30 May 2015 09:19:36 +0000 (11:19 +0200)
commit732b7f39a2b3b1a2af90102c6262186ae71197ac
tree2d2b760011c6c6f4c60c74627abd3e1c4dce1803
parent8f42ccd24ba3cbdb994094df4aac69a00c3c7367
networkctl: fix uninitialized variable

We ignore the return value of sd_device_get_devtype, then devtype could
be uninitialized when used with streq_ptr. So we need to initialize it
first.
src/network/networkctl.c