]> git.dujemihanovic.xyz Git - u-boot.git/commit
sntp: avoid use of uninitialized variable
authorLuuk Paulussen <luuk.paulussen@alliedtelesis.co.nz>
Mon, 16 May 2011 18:27:11 +0000 (18:27 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 1 Jun 2011 20:35:09 +0000 (22:35 +0200)
commitd6840e3d7abb71c2a45c3788dcc6edf7feb1d303
tree48b8cf1f0ee07eac9a71c366e7d173cb42233b4e
parentbd0d19cc5f346ff6504d47497ec799e066168b96
sntp: avoid use of uninitialized variable

When we use the ntpserverip environment variable argv[1] may not be set.
Printing the error message using the NetNtpServerIP variable ensures the
correct output in both cases.

Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz>
Acked-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Ben Warren <biggerbadderben@gmail.com>
Acked-by: Detlev Zundel <dzu@denx.de>
common/cmd_net.c