summaryrefslogtreecommitdiff
path: root/lib/libedit/filecomplete.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-09 18:52:09 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-09 18:52:09 +0000
commit14eaf4448c20c5e001578ca93abfd2ddf38d69f8 (patch)
treee4e11615729265bf3eb1f4069da26e24e828c63c /lib/libedit/filecomplete.c
parent4cace9ebf6f09bca66e4d75235eb3e652afcdd91 (diff)
Notes
Diffstat (limited to 'lib/libedit/filecomplete.c')
-rw-r--r--lib/libedit/filecomplete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libedit/filecomplete.c b/lib/libedit/filecomplete.c
index 10d44e44ebd1..452730233a28 100644
--- a/lib/libedit/filecomplete.c
+++ b/lib/libedit/filecomplete.c
@@ -471,7 +471,7 @@ fn_complete(EditLine *el,
/* these can be used by function called in completion_matches() */
/* or (*attempted_completion_function)() */
- if (point != 0)
+ if (point != NULL)
*point = (int)(li->cursor - li->buffer);
if (end != NULL)
*end = (int)(li->lastchar - li->buffer);
@@ -483,7 +483,7 @@ fn_complete(EditLine *el,
&el->el_scratch),
cur_off - (int)len, cur_off);
} else
- matches = 0;
+ matches = NULL;
if (!attempted_completion_function ||
(over != NULL && !*over && !matches))
matches = completion_matches(