version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_exit_c = | | * static char *rcsid_exit_c = |
* "$Id: exit.c,v 1.19 2005/12/04 06:35:34 akirschbaum Exp $"; | | * "$Id: exit.c,v 1.20 2006/03/04 17:37:19 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* would require keeping a 'next' pointer, ad free_object kills tmp, which | | * would require keeping a 'next' pointer, ad free_object kills tmp, which |
* breaks the for loop. | | * breaks the for loop. |
*/ | | */ |
if (tmp->type == EXIT && !strncmp(EXIT_PATH(tmp),"/random/", 8)) { | | if (tmp->type == EXIT && EXIT_PATH(tmp) && !strncmp(EXIT_PATH(tmp),"/random/", 8)) { |
remove_ob(tmp); | | remove_ob(tmp); |
free_object(tmp); | | free_object(tmp); |
break; | | break; |