Commit 9fb70f31fea14c7c1b5575cc71d562587d837ca8

Authored by Jeroen Hofstee
Committed by Tom Rini
1 parent 5c45f55060

cmd_md5sum.c: remove dead code / fix warning

commit ecd729500 "Add parameter to md5sum to save the md5 sum"
adds support to build a string to be saved in the env and tries
to zero end it with str_ptr = '\0'; This does actually set the
pointer to the end of the buffer itself to zero. Since the
string was already zero terminated by the sprintf before it,
just remove the line, preventing a clang warning.

cc: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -33,7 +33,6 @@
33 33 sprintf(str_ptr, "%02x", sum[i]);
34 34 str_ptr += 2;
35 35 }
36   - str_ptr = '\0';
37 36 setenv(dest, str_output);
38 37 }
39 38 }