summaryrefslogtreecommitdiff
path: root/board/netstar/crcit.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-07-21 09:38:33 (GMT)
committerWolfgang Denk <wd@pollux.denx.de>2006-07-21 09:38:33 (GMT)
commit87a5c73d66beee8cc4d3b179114da89bf8e09791 (patch)
tree04d567437f651eff45323e27d5b4ee8702222c00 /board/netstar/crcit.c
parent029b6dc77c8533fe46d9402463487512831c0b29 (diff)
downloadu-boot-fsl-qoriq-87a5c73d66beee8cc4d3b179114da89bf8e09791.tar.xz
Update NetStar board
Patch by Ladislav Michl, 03 Nov 2005
Diffstat (limited to 'board/netstar/crcit.c')
-rw-r--r--board/netstar/crcit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/netstar/crcit.c b/board/netstar/crcit.c
index f6d3066..ce98e20 100644
--- a/board/netstar/crcit.c
+++ b/board/netstar/crcit.c
@@ -77,7 +77,7 @@ int main(int argc, char **argv)
} else if ((argc == 4) && (strcmp(argv[1], "-v") == 0)) {
char *endptr, *nptr = argv[2];
unsigned ver = strtoul(nptr, &endptr, 0);
- if (nptr != '\0' && endptr == '\0')
+ if (*nptr != '\0' && *endptr == '\0')
return doit(argv[3], ver);
}
fprintf(stderr, "Usage: crcit [-v version] <image>\n");