Merge branch 'vendor/LIBEDIT'
[dragonfly.git] / contrib / libedit / src / filecomplete.c
index 438de4e..09082f7 100644 (file)
@@ -448,7 +448,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);
@@ -459,7 +459,7 @@ fn_complete(EditLine *el,
                    ct_encode_string(temp, &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(