cfgfile: fix read of empty file
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 16 Dec 2014 15:03:53 +0000 (15:03 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Dec 2014 23:40:37 +0000 (00:40 +0100)
commitd3e454a86f5f40fd66477fb032c3ce698795f18b
treee327771df05ce4443df073ca5ed4aa048e6edc1e
parent8b27765d67604009e117476e66f6b9297e7c9e33
cfgfile: fix read of empty file

If the file to be read by the cfgfile is empty, i.e. no configuration
data, but possibly comments present, the cfgfile should not mark the
last processed section (curr_section) as having N entries, since there
is no last processed section.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_cfgfile/rte_cfgfile.c