]> xenbits.xensource.com Git - libvirt.git/commit
Fix strchr call triggering gcc 4.3 & 4.4 bug
authorStefan Berger <stefanb@us.ibm.com>
Tue, 15 Nov 2011 17:48:07 +0000 (12:48 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 15 Nov 2011 20:00:10 +0000 (15:00 -0500)
commit39d91e9f880a88026359d941476b35069bcece71
treeabac80a30d00dfc45b103125a928734156305aa0
parentc2cc02ea98569b8331208a45a288c5d01cf2d536
Fix strchr call triggering gcc 4.3 & 4.4 bug

Replacing the strchr call with two variables through a strstr call.
Calling strchr with two variables triggers a gcc 4.3/4.4
bug when used in combination with -Wlogical-op and at least -O1.
src/util/buf.c