Uninitialised value was created by a stack allocation - valgrind
问题 I used valgrind to debug my code with the option track-origins=yes and came across this error. $ valgrind --track-origins=yes ./frgtnlng < in > out ==7098== ==7098== Conditional jump or move depends on uninitialised value(s) ==7098== at 0x4C2F1BC: strcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==7098== by 0x400857: main (frgtnlng.c:24) ==7098== Uninitialised value was created by a stack allocation ==7098== at 0x40064C: main (frgtnlng.c:9) ==7098== ==7098== Conditional jump or