Don't free random memory; thanks gcc-4.

This commit is contained in:
christos 2006-05-14 01:09:03 +00:00
parent a7679aa75e
commit 62faec262e
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: edit.c,v 1.19 2006/04/27 13:25:21 christos Exp $ */
/* $NetBSD: edit.c,v 1.20 2006/05/14 01:09:03 christos Exp $ */
/*
* Command line editing - common code
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: edit.c,v 1.19 2006/04/27 13:25:21 christos Exp $");
__RCSID("$NetBSD: edit.c,v 1.20 2006/05/14 01:09:03 christos Exp $");
#endif
@ -503,6 +503,8 @@ x_print_expansions(nwords, words, is_command)
int prefix_len;
XPtrV l;
l.beg = NULL;
/* Check if all matches are in the same directory (in this
* case, we want to omit the directory name)
*/