examples/vm_power: fix check for null
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 16 Dec 2014 15:03:52 +0000 (15:03 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Dec 2014 00:04:06 +0000 (01:04 +0100)
commit5b628fe19a8c4693c4e1d5859418d8b16991c0cf
tree6fef6e0a7109ed7d529d9e3e5267f36fd3187bed
parent0d74597c1b4ff660b3fb6cd97c7d86643d42065b
examples/vm_power: fix check for null

The check for NULL is in the wrong position in the "if" error leg. The
pointer should be checked for NULL before checking what the value of
what the pointer points to is.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples/vm_power_manager/channel_manager.c
examples/vm_power_manager/vm_power_cli.c