Null check before passing pointer to strlen call
Null check before passing pointer to strlen call

strlen operation on NULL pointer results in segmentation fault.
Hence this patch checks pointer before passing it to strlen function.

Signed-off-by: Ankit Kumar <7d7f3b0de32b6cc2e9608ebf7986c26b5954d288@linux.vnet.ibm.com>
Reviewed-by: Mukesh Ojha <642e2ee181c06342c4240cb5a92dcc8bb7a2d3b5@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

kamalesh-babulal/libvpd,kamalesh-babulal/libvpd,kamalesh-babulal/libvpd