From cd857cc9c374f33631eb536339fb1915fd102ea9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 29 Jan 2008 19:21:00 +0100 Subject: [PATCH] add extra null pointer check --- list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/list.c b/list.c index 5332800..d78970c 100644 --- a/list.c +++ b/list.c @@ -293,6 +293,7 @@ int uci_set(struct uci_context *ctx, char *package, char *section, char *option, UCI_HANDLE_ERR(ctx); UCI_ASSERT(ctx, package != NULL); UCI_ASSERT(ctx, section != NULL); + UCI_ASSERT(ctx, value != NULL); /* * look up the package, section and option (if set) -- 2.25.1