]> sourceware.org Git - lvm2.git/commit
Test lv_name is not NULL
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 1 Dec 2010 12:22:49 +0000 (12:22 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 1 Dec 2010 12:22:49 +0000 (12:22 +0000)
commit60d340b3878dbba73eb9070c086425fd6893a3c6
treec215a04ceaf7bad3439d119ec5bc02808930cfac
parent22812bc83c380b0d0fdcf94e54cb5cad91e68cd5
Test lv_name is not NULL

Patch adds extra check for lv_name not being NULL.
Test avoids unneeded strlen call for this case.
Otherwise there is no functional change as test would fail on
size_t comparation even for NULL lv_name (thus there is no risk
of NULL dereference when taking 'true' if branch.
tools/toollib.c
This page took 0.05294 seconds and 5 git commands to generate.