summaryrefslogtreecommitdiff
path: root/include/linux/linux_string.h
diff options
context:
space:
mode:
authorJeroen Hofstee <[email protected]>2014-06-09 11:02:02 +0200
committerTom Rini <[email protected]>2014-06-11 16:27:05 -0400
commit8b9cc866c10787b057b4ac91c8783cfa752f1151 (patch)
tree4a9462b59d188da3ba7d3133a385b38c9f8dddb2 /include/linux/linux_string.h
parentc71630838d908e410ee83f0164327e1fd515f1ca (diff)
common: hash: zero end the string instead of the pointer
if algo->digest_size is zero nothing is set in the str_output buffer. An attempt is made to zero end the buffer, but the pointer to the buffer is set to zero instead. I am unaware if it causes any actual problems, but solves the following warning: common/hash.c:217:13: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] str_ptr = '\0'; ^~~~ cc: Simon Glass <[email protected]> Signed-off-by: Jeroen Hofstee <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions