Skip to content
Snippets Groups Projects
Commit d6840e3d authored by Luuk Paulussen's avatar Luuk Paulussen Committed by Wolfgang Denk
Browse files

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: default avatarLuuk Paulussen <luuk.paulussen@alliedtelesis.co.nz>
Acked-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Ben Warren <biggerbadderben@gmail.com>
Acked-by: default avatarDetlev Zundel <dzu@denx.de>
parent bd0d19cc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment