Add bitfield_set function from libubox.
[project/uci.git] / file.c
diff --git a/file.c b/file.c
index 5a8c6cb..494c649 100644 (file)
--- a/file.c
+++ b/file.c
@@ -70,8 +70,6 @@ __private void uci_getln(struct uci_context *ctx, int offset)
 
                pctx->bufsz *= 2;
                pctx->buf = uci_realloc(ctx, pctx->buf, pctx->bufsz);
-               if (!pctx->buf)
-                       UCI_THROW(ctx, UCI_ERR_MEM);
        } while (1);
 }