On Debian GNU/kFreeBSD, gcc version 4.2.1 (Debian 4.2.1-5):

../edit.c: In function ‘x_cf_glob’:
../edit.c:508: warning: ‘words’ may be used uninitialized in this function
This commit is contained in:
tg 2007-09-09 20:03:32 +00:00
parent 49c7194ffa
commit 3d6f318d90
1 changed files with 2 additions and 2 deletions

4
edit.c
View File

@ -5,7 +5,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.112 2007/09/09 18:06:39 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.113 2007/09/09 20:03:32 tg Exp $");
/* tty driver characters we are interested in */
typedef struct {
@ -505,7 +505,7 @@ x_cf_glob(int flags, const char *buf, int buflen, int pos, int *startp,
{
int len;
int nwords;
char **words;
char **words = NULL;
int is_command;
len = x_locate_word(buf, buflen, pos, startp, &is_command);