]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: Check for NULL pointer in envmatch()
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 3 Oct 2012 09:38:50 +0000 (09:38 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:05 +0000 (11:54 -0700)
commit586197dfe42ffda777205b02fe404107eb7d974a
treef7f06afcf49dac5dec0f5d33e4be48d3ab8e768a
parente4a223f04de2e271682f26d7b981c0012f6a459f
env: Check for NULL pointer in envmatch()

If the pointer passed into envmatch() is NULL, return -1 instead of
crashing.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
common/cmd_nvedit.c
tools/env/fw_env.c