]> Git Repo - qemu.git/commit
test-logging: Fix -Werror=maybe-uninitialized warning
authorMiroslav Rezanina <[email protected]>
Tue, 21 Jan 2020 09:28:13 +0000 (10:28 +0100)
committerThomas Huth <[email protected]>
Tue, 4 Feb 2020 08:00:57 +0000 (09:00 +0100)
commit24f7eeed9ad7f90975c2da44425d15b8f0837120
treeea3db2f26dc5603adbcd3ac1cf7f881f2297c327
parentf31160c7d1b89cfb4dd4001a23575b42141cb0ec
test-logging: Fix -Werror=maybe-uninitialized warning

Checking for uninitialized variables raises warning for file path
variables in test_logfile_write and test_logfile_lock functions.

To suppress this warning, initialize varibles to NULL. This is safe
change as result of g_build_filename is stored to them before any usage.

Signed-off-by: Miroslav Rezanina <[email protected]>
Message-Id: <63b0fcedf7dfe799c8210b113e5dccf32414a89d.1579598240[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Robert Foley <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
tests/test-logging.c
This page took 0.025453 seconds and 4 git commands to generate.