用valgrind对代码进行内存检测的时候,提示“Conditional jump or move depends on uninitialised value(s)”,

1 变量未初始化

struct tm 结构体未初始化,

char tmp[512]未初始化造成的。要初始化,只需memset即可,这样做之后,

相关文章:

  • 2021-11-20
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2022-01-08
  • 2021-12-23
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2021-10-29
  • 2021-06-23
  • 2021-10-09
  • 2021-05-22
相关资源
相似解决方案