]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
Bug #944: Deletion of unnecessary checks before calls of the function "free"
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Aug 2015 07:30:49 +0000 (09:30 +0200)
committerMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Aug 2015 07:30:49 +0000 (09:30 +0200)
commitdc4ebc0787a299f064553e6d28a7f35574ce1c2a
tree1b939ceaa089de170270b26982088515fbade6d5
parentf00ef7f5d43980e82ed7caa1ac3530b3713cbd76
Bug #944: Deletion of unnecessary checks before calls of the function "free"

The function "free" is documented in the way that no action shall occur for
a passed null pointer. It is therefore not needed that a function caller
repeats a corresponding check.
http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first

This issue was fixed by using the software Coccinelle 1.0.1.
src/journal/journal-file.c
src/udev/udev-builtin-path_id.c