Browse Source

file: remove redundant NULL check on return value of uci_realloc()

Because the check will be done by uci_realloc itself.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Yousong Zhou 7 years ago
parent
commit
c4df32b386
1 changed files with 0 additions and 2 deletions
  1. 0 2
      file.c

+ 0 - 2
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);
 }