我用Valgrind检测内存的问题,出现了下面的提示:
==232903== Conditional jump or move depends on uninitialised value(s)
==232903== at 0x4F712FC: zlog_conf_parse_line (conf.c:409)
==232903== by 0x4F71CE0: zlog_conf_build_with_file (conf.c:338)
==232903== by 0x4F72717: zlog_conf_new (conf.c:176)
==232903== by 0x4F7AAEA: zlog_init_inner (zlog.c:91)
==232903== by 0x4F7AC6B: zlog_init (zlog.c:134)
==232903== by 0x12558A: main (main.c:177)
==232903== Uninitialised value was created by a stack allocation
==232903== at 0x4F71172: zlog_conf_parse_line (conf.c:384)
1 个赞