env: throw an error when an empty key is used
authorLucian Cojocar <cojocar@gmail.com>
Sun, 28 Apr 2013 11:31:57 +0000 (11:31 +0000)
committerTom Rini <trini@ti.com>
Thu, 9 May 2013 21:03:05 +0000 (17:03 -0400)
commite4fdcadd8a6eedb1edaabbc85c782b43d4e80fe2
treea42c04f7d46f34f2c298c0c8f7443deab400d489
parentd642c467a071f074b991f9fea0c877c22462c9e9
env: throw an error when an empty key is used

If the environment contains an entry like "=value" "\0" we should throw
an error when parsing the environment. Otherwise, U-Boot will enter in
an infinite loop.

Signed-off-by: Lucian Cojocar <cojocar@gmail.com>
lib/hashtable.c