]> git.ipfire.org Git - thirdparty/mdadm.git/commit - util.c
util: fix test for text_version
authorNeilBrown <neilb@suse.de>
Mon, 11 May 2009 05:21:43 +0000 (15:21 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 11 May 2009 05:21:43 +0000 (15:21 +1000)
commit603f24a05f48063a7239e323e2aeab497cb0feb6
treee6d0b2125d5f75fdfc3cb40a7f33c353f1b37274
parent05833051ee595c8d356a2a1ed61f7d9e6f4186ef
util: fix test for text_version

as text_version is a char array (not a pointer), testing the
address against NULL is the wrong thing to do.  Test the
content instead.

Signed-off-by: NeilBrown <neilb@suse.de>
util.c