summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-01 09:25:42 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-01 09:25:42 -0800
commit08cebd08c7645737d44de8a801af7c2df7874571 (patch)
tree78969e3fda526f41a4b846652fccd30b53e14b48 /txr.c
parent04ed380c4a389c0c21eae8e3cd35e7e44506a2e3 (diff)
downloadtxr-08cebd08c7645737d44de8a801af7c2df7874571.tar.gz
txr-08cebd08c7645737d44de8a801af7c2df7874571.tar.bz2
txr-08cebd08c7645737d44de8a801af7c2df7874571.zip
Bug ID 27895: Calls to protect have an argument list terminated
by the integer constant 0 rather than a proper null pointer constant.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/txr.c b/txr.c
index d369816f..281820e3 100644
--- a/txr.c
+++ b/txr.c
@@ -151,10 +151,10 @@ static int txr_main(int argc, char **argv)
int match_loglevel = opt_loglevel;
progname = argv[0] ? argv[0] : progname;
- protect(&spec_file_str, 0);
+ prot1(&spec_file_str);
yyin_stream = std_input;
- protect(&yyin_stream, 0);
+ prot1(&yyin_stream);
if (argc <= 1) {
hint();