tools: hv: Check retrun value of strchr call
authorTomas Hozza <thozza@redhat.com>
Wed, 22 May 2013 12:54:32 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 21:13:09 +0000 (14:13 -0700)
commitf14e600a3bb62905fe9e4e0350048af4ead54ca9
tree0ebf7bb75a606409ea8967a42302107020cbdcbe
parent4d81e3074423d1bd69a29d5795ff71205814d9e1
tools: hv: Check retrun value of strchr call

Check return value of strchr call and dereference it only if it is
not NULL.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c