]> sourceware.org Git - lvm2.git/commit
Fix NULL pointer check for *buf
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 17 Dec 2010 12:37:49 +0000 (12:37 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 17 Dec 2010 12:37:49 +0000 (12:37 +0000)
commit8a8a182679a212421c191f45be0155b29cb74381
treeadbaefeac45bcb738607d23aafba012c5a91974a
parent2f19cff4df50ec9bff63a14549f3ccb71876eb4a
Fix NULL pointer check for *buf

As ternary operator has lower priority then add operation, this check
was not doing what seemed to be expected.

So enclose the test in braces and check for NULL in *buf.
WHATS_NEW
daemons/clvmd/clvmd-command.c
This page took 0.187653 seconds and 5 git commands to generate.