]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix build of openvz on RHEL-5.
authorChris Lalancette <clalance@redhat.com>
Tue, 6 Apr 2010 19:33:32 +0000 (15:33 -0400)
committerChris Lalancette <clalance@redhat.com>
Tue, 13 Apr 2010 20:28:10 +0000 (16:28 -0400)
commit29045d88ed12775edf355b51ea61ff3f2856fd14
treeb182fe5691d3b284650f1201252ff191f03a5df2
parentdf032bab12cc158f19689986051e8b6eae4cf93f
Fix build of openvz on RHEL-5.

When building libvirt on RHEL-5, I saw this error:

cc1: warnings being treated as errors
openvz/openvz_conf.c: In function 'openvzGetVPSUUID':
openvz/openvz_conf.c:835: warning: 'saveptr' may be used uninitialized in this function
make[3]: *** [libvirt_driver_openvz_la-openvz_conf.lo] Error 1

gcc in RHEL-5 gets upset about this usage of strtok_r (even though
it is perfectly valid).  Just set *saveptr to NULL at the
start to quiet it down.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/openvz/openvz_conf.c