diff --git a/export-html.cpp b/export-html.cpp
index 07159c16b..f66bd6909 100644
--- a/export-html.cpp
+++ b/export-html.cpp
@@ -41,7 +41,7 @@ int main(int argc, char **argv)
qDebug() << "need --source and --output";
exit(1);
}
- int ret = parse_file(qPrintable(source, &dive_table));
+ int ret = parse_file(qPrintable(source), &dive_table);
if (ret) {
fprintf(stderr, "parse_file returned %d\n", ret);
exit(1);