Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

cmd_md5sum.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Loading
    • Jeroen Hofstee's avatar
      9fb70f31
      cmd_md5sum.c: remove dead code / fix warning · 9fb70f31
      Jeroen Hofstee authored
      
      commit ecd72950 "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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
      9fb70f31
      History
      cmd_md5sum.c: remove dead code / fix warning
      Jeroen Hofstee authored
      
      commit ecd72950 "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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
    cmd_md5sum.c 3.44 KiB