cfgfile: fix unitialised buffer
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Mon, 29 Jun 2015 15:06:03 +0000 (17:06 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Jul 2015 21:36:22 +0000 (23:36 +0200)
commit8646ea0116df6ef4cdd3c39f94ce53d17724d2cb
treee3ada9eafb9fe04a51100a5c885a4033ad4775d5
parentc928adc4e78bc97d9f04980371a58f28930867da
cfgfile: fix unitialised buffer

Nature of the problem was not initialised buffer[256], there were probability
that operation system will provide previously used memory and on special condition
there were probability that string operations will work on random data that
could provide unexpected program behaviour.

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_cfgfile/rte_cfgfile.c