and change the number in the subscipt in argv[HERE] the segfault seems to dissapear for some reason
edit: ok, I'm stupid. It's because when you didn't pass the "DEBUG" argument it would basically try and compare it to garbage, which is what caused the segmentation fault