]> xenbits.xensource.com Git - libvirt.git/commit
maint: avoid empty regex in syntax checker
authorEric Blake <eblake@redhat.com>
Thu, 26 Jul 2012 14:29:15 +0000 (08:29 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 26 Jul 2012 18:22:02 +0000 (12:22 -0600)
commit72181978d5968c14d2522dcc69a227803ccd7335
tree974dae091f570a3040f4bb5f491553a8d24f5c01
parent4fedf388f68b49dd1a8334f75272c3bfddd6032c
maint: avoid empty regex in syntax checker

We were defining 'func_or' as '|VIR_ERROR|...', which when put
inside 'func_re' resulted in a regex that matches everything in
isolation.  Thankfully, we always used func_re with a leading
anchor \<, and since the empty regex does not start a word, we
happened to get the result we wanted; but it's better to define
func_or without a leading space converted into a leading empty
alternation.

* cfg.mk (func_or): Strip leading space.
cfg.mk