projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
file: remove redundant NULL check on return value of uci_realloc()
[project/uci.git]
/
file.c
diff --git
a/file.c
b/file.c
index 5a8c6cb51bb143fe23c5e272cc0a0805ff17b0fa..494c6491cb80b68c2967cf2fc462b1004f188283 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);
}