From 9df079cdfe36be816c8c4b8dbe82aef970afc24b Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 4 Nov 2012 14:03:01 +0000 Subject: Make the example a tad more useful --- examples/dom-structure-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/dom-structure-dump.c') 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; -- cgit v1.2.3