summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index 6dfe4004..a891d8fe 100644
--- a/main.cc
+++ b/main.cc
@@ -152,7 +152,7 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[],
// rightmost '/' character in the pager pathname. See manpage
// for strrchr.
execlp(report.pager->native_file_string().c_str(),
- basename(*report.pager).c_str(), (char *)0);
+ basename(*report.pager).c_str(), NULL);
perror("execl");
exit(1);
}