A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
special configuration for Visual C++ compiler
[simgrid.git]
/
src
/
surf
/
surfxml_parse.c
diff --git
a/src/surf/surfxml_parse.c
b/src/surf/surfxml_parse.c
index
785a41d
..
c8d2f0c
100644
(file)
--- a/
src/surf/surfxml_parse.c
+++ b/
src/surf/surfxml_parse.c
@@
-168,8
+168,12
@@
void ETag_surfxml_argument(void)
}
void surf_parse_open(const char *file) {
}
void surf_parse_open(const char *file) {
+ static int warned = 0; /* warn only once */
if(!file) {
if(!file) {
- WARN0("I hope you know what you're doing... you just gave me a NULL pointer!");
+ if (!warned) {
+ WARN0("Bypassing the XML parser since surf_parse_open received a NULL pointer. If it is not what you want, go fix your code.");
+ warned = 1;
+ }
return;
}
if(!surf_input_buffer_stack)
return;
}
if(!surf_input_buffer_stack)