projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2b1433
)
fix segfault in extended section lookup
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 27 Aug 2008 19:38:54 +0000
(21:38 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 27 Aug 2008 19:38:54 +0000
(21:38 +0200)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index c4b84e23d8f8bc84e5e3dfcfa039f2d2558e21c3..0ddf4093644edff97b979d778734a2bfd705c972 100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-358,7
+358,8
@@
error:
UCI_THROW(ctx, UCI_ERR_INVAL);
done:
free(section);
- ptr->section = e->name;
+ if (e)
+ ptr->section = e->name;
return e;
}