From d8c66aef762cef7f884084f93c8ff64dc1eacf09 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 17 May 2002 19:34:40 +0000 Subject: [PATCH] don't seg if strct is null --- tools/qfcc/source/struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/struct.c b/tools/qfcc/source/struct.c index e94d77db3..69e42569a 100644 --- a/tools/qfcc/source/struct.c +++ b/tools/qfcc/source/struct.c @@ -96,7 +96,7 @@ new_struct_field (type_t *strct, type_t *type, const char *name, struct_field_t * struct_find_field (type_t *strct, const char *name) { - if (!structs) + if (!structs || !strct) return 0; return Hash_Find (strct->struct_fields, name); }