Coverity CID 3184: Don't dereference NULL

This commit is contained in:
christos 2006-05-23 01:11:12 +00:00
parent d257792f4a
commit 1fc5ea78ff

View File

@ -1,4 +1,4 @@
/* $NetBSD: value.h,v 1.4 2003/08/07 11:17:33 agc Exp $ */
/* $NetBSD: value.h,v 1.5 2006/05/23 01:11:12 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@ -48,4 +48,5 @@ struct value {
#define V_STR 2
#define V_ERR 3
#define val_free(v) ((v).v_type == V_STR ? str_free((v).v_str) : 0)
#define val_free(v) (((v).v_type == V_STR && (v).v_str) ? \
str_free((v).v_str) : 0)