summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream.c b/stream.c
index 5cff2bc3..5adc0b7e 100644
--- a/stream.c
+++ b/stream.c
@@ -357,8 +357,7 @@ strmReadLine(strm_t *pThis, rsCStrObj **ppCStr)
ASSERT(pThis != NULL);
ASSERT(ppCStr != NULL);
- if((pCStr = rsCStrConstruct()) == NULL)
- ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY);
+ CHKiRet(rsCStrConstruct(&pCStr));
/* now read the line */
CHKiRet(strmReadChar(pThis, &c));