summaryrefslogtreecommitdiff
path: root/examples/dom-structure-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dom-structure-dump.c')
-rw-r--r--examples/dom-structure-dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dom-structure-dump.c b/examples/dom-structure-dump.c
index 0e691e0..833bbe1 100644
--- a/examples/dom-structure-dump.c
+++ b/examples/dom-structure-dump.c
@@ -315,7 +315,7 @@ int main(int argc, char **argv)
dom_node *root = NULL; /* root element of document */
/* Load up the input HTML file */
- doc = create_doc_dom_from_file("files/test.html");
+ doc = create_doc_dom_from_file((argc > 1) ? (argv[1]) : "files/test.html");
if (doc == NULL) {
printf("Failed to load document.\n");
return EXIT_FAILURE;