]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
fix build with older gcc
authorJán Tomko <jtomko@redhat.com>
Fri, 2 May 2014 07:37:34 +0000 (09:37 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 2 May 2014 07:37:34 +0000 (09:37 +0200)
commit1055852aef8c22fe1d1549d7d3739dc8a1c3f02b
treef41a4e3752d69ea77b7640cbaa7bd06f1cf83760
parent5c05e2b126decbdef1458529443332bc5950d7c4
fix build with older gcc

Older gcc (4.1.2-55.el5, 4.2.1 on FreeBSD) reports bogus warnings:
../../src/conf/nwfilter_conf.c:2111: warning: 'protocol' may be used
uninitialized in this function
../../src/conf/nwfilter_conf.c:2110: warning: 'dataProtocolID' may be
used uninitialized in this function

Initialize them to NULL to make the compiler happy.
src/conf/nwfilter_conf.c