1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-22 10:31:56 +02:00
Files
u-boot-megous/common
Jeroen Hofstee 8b9cc866c1 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 <sjg@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
2014-06-11 16:27:05 -04:00
..
2014-05-12 15:20:05 -04:00
2014-05-29 17:49:33 -04:00
2014-06-11 16:25:47 -04:00
2014-06-11 16:25:47 -04:00
2014-06-11 16:25:47 -04:00
2014-02-04 16:32:20 +01:00
2014-05-27 10:21:32 -04:00
2014-03-21 16:39:32 -04:00
2014-05-27 10:21:32 -04:00
2014-06-05 14:38:38 -04:00
2013-08-16 13:45:15 -04:00
2014-03-22 14:47:22 -06:00
2014-05-12 15:19:46 -04:00
2014-02-21 11:33:19 -05:00
2014-01-14 09:01:06 -05:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-01-14 09:01:06 -05:00
2014-04-17 17:44:36 -04:00
2014-05-09 11:50:14 +02:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-03-17 20:05:49 -06:00
2014-05-29 17:52:03 -04:00
2014-05-29 17:45:31 -04:00