summaryrefslogtreecommitdiff
path: root/libsm/strio.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2020-07-14 21:40:53 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2020-07-14 21:40:53 +0000
commitcee0d44ab388e12fbd62fdb134d295c58901148a (patch)
treefbe464b241337077b941be7126ad3f3f78b19f7f /libsm/strio.c
parent1c3e417caf2d11608f10043b7e70b6e7ed8711ff (diff)
Diffstat (limited to 'libsm/strio.c')
-rw-r--r--libsm/strio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsm/strio.c b/libsm/strio.c
index 4fae8070ad00e..de13af683deb8 100644
--- a/libsm/strio.c
+++ b/libsm/strio.c
@@ -224,18 +224,18 @@ sm_stropen(fp, info, flags, rpool)
#if SM_RPOOL
s = sm_rpool_malloc_x(rpool, sizeof(SM_STR_OBJ_T));
-#else /* SM_RPOOL */
+#else
s = sm_malloc(sizeof(SM_STR_OBJ_T));
if (s == NULL)
return -1;
-#endif /* SM_RPOOL */
+#endif
fp->f_cookie = s;
s->strio_rpool = rpool;
s->strio_offset = 0;
s->strio_size = 0;
s->strio_base = NULL;
- s->strio_end = 0;
+ s->strio_end = NULL;
switch (flags)
{
@@ -297,7 +297,7 @@ sm_strclose(fp)
#if !SM_RPOOL
sm_free(s->strio_base);
s->strio_base = NULL;
-#endif /* !SM_RPOOL */
+#endif
return 0;
}