fix SIGSEGV, we are passed NULL sometimes

This commit is contained in:
tg 2006-11-09 14:58:27 +00:00
parent a1bfc17aa0
commit 2b375abef1
1 changed files with 2 additions and 2 deletions

4
sh.h
View File

@ -8,7 +8,7 @@
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.56 2006/11/09 14:19:31 tg Exp $"
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.57 2006/11/09 14:58:27 tg Exp $"
#define MKSH_VERSION "R29 2006/11/08"
#if HAVE_SYS_PARAM_H
@ -1220,7 +1220,7 @@ struct tbl **ktsort(struct table *);
void setctypes(const char *, int);
void initctypes(void);
char *ulton(unsigned long, int);
#define str_save(s, a) str_nsave((s), strlen(s), a)
#define str_save(s, a) str_nsave((s), (s) ? strlen(s) : 0, a)
char *str_nsave(const char *, int, Area *);
int option(const char *);
char *getoptions(void);