[JDEV] [patch config.c]
Rodolphe Duge de Bernonville
rod at idealx.com
Wed Feb 21 03:09:21 CST 2001
There is no error message when
you include a file that doesnt exist.
@@ -64,12 +62,17 @@
char *include_file=xmlnode_get_data(cur);
xmlnode include_x=xmlnode_file(include_file);
+ if (include_x == NULL){
+ fprintf(stderr, "ERROR: While including file %s\n", include_file);
+ exit(1);
+ }
+
/* check for bad nesting */
if(nesting_level>MAX_INCLUDE_NESTING)
- {
- fprintf(stderr, "ERROR: Included files nested %d levels
deep. Possible Recursion\n",nesting_level);
- exit(1);
- }
+ {
+ fprintf(stderr, "ERROR: Included files nested %d levels deep.
Possible Recursion\n",nesting_level);
+ exit(1);
+ }
include=cur;
xmlnode_hide(include);
/* check to see what to insert...
More information about the JDev
mailing list