I got a segmentation fault by running Valgrind on this C code, and it points me to a few lines saying "invalid read of size 8" and "Address 0x527d540 is 0 bytes a