fix SIGSEGV, we are passed NULL sometimes
This commit is contained in:
parent
a1bfc17aa0
commit
2b375abef1
4
sh.h
4
sh.h
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue