summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-05 01:15:00 +0200
committerFelix Fietkau <nbd@openwrt.org>2008-09-05 01:15:00 +0200
commit537690838e712f360009b3859a6d5f155465e2a5 (patch)
treee8720d8752a68821203719f43d200ecd169fc19e
parentc7430fd3578af03d9fe998f3195756603295ce2f (diff)
downloaduci-537690838e712f360009b3859a6d5f155465e2a5.tar.gz
fix segmentation fault / endless loop on history loads
-rw-r--r--list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/list.c b/list.c
index 0ddf409..fe2e6ec 100644
--- a/list.c
+++ b/list.c
@@ -467,7 +467,7 @@ expand_ptr(struct uci_context *ctx, struct uci_ptr *ptr, bool complete)
UCI_ASSERT(ctx, ptr != NULL);
if (!(ptr->flags & UCI_LOOKUP_DONE))
- uci_lookup_ptr(ctx, ptr, NULL, 1);
+ UCI_INTERNAL(uci_lookup_ptr, ctx, ptr, NULL, 1);
if (complete && !(ptr->flags & UCI_LOOKUP_COMPLETE))
UCI_THROW(ctx, UCI_ERR_NOTFOUND);
UCI_ASSERT(ctx, ptr->p != NULL);