From 537690838e712f360009b3859a6d5f155465e2a5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 5 Sep 2008 01:15:00 +0200 Subject: [PATCH] fix segmentation fault / endless loop on history loads --- list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1