From: Felix Fietkau Date: Thu, 4 Sep 2008 23:15:00 +0000 (+0200) Subject: fix segmentation fault / endless loop on history loads X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=537690838e712f360009b3859a6d5f155465e2a5;p=oweals%2Fuci.git fix segmentation fault / endless loop on history loads --- 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);