missing
[oweals/gnunet.git] / src / monkey / bug_null_pointer_exception.c
index 27428816d9e8f8cad8318425ca18f65c866719e8..072904b6da944430693f984917530d1c4aab0ac6 100644 (file)
@@ -3,25 +3,15 @@
 
 void crashFunction() 
 {
-       //char *stringCannotBeChanged = "String cannot be changed!";
        char *nullString = NULL;
-       
-       printf("Now the program will crash! Take a cover! \n");
-       //*stringCannotBeChanged = 'h';
-       printf("Nonsense!\n");
+       printf("Now the program will crash!\n");
        if (strcmp(nullString, "A string to compare with") == 0) {
-               printf("How come?! It had to be crashed!\n");
+               printf("How come?! It had to crash!\n");
        }
 }
 
 int main(int argc, char *argv[]) 
 {
-       int i = 0;
-       printf("arguments: %d\n", argc);
-       for (i=0; i<argc; i++)
-               printf("%d: %s\n", i, argv[i]);
-       printf("Press ENTER\n");
-       getchar();
        crashFunction();
        return 0;
 }