summaryrefslogtreecommitdiff
path: root/common/put.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/put.c')
-rw-r--r--common/put.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/put.c b/common/put.c
index 26a67ac8711c..f39948808e7d 100644
--- a/common/put.c
+++ b/common/put.c
@@ -39,7 +39,7 @@ put(SCR *sp, CB *cbp, CHAR_T *namep, MARK *cp, MARK *rp, int append)
CHAR_T *bp, *t;
CHAR_T *p;
- if (cbp == NULL)
+ if (cbp == NULL) {
if (namep == NULL) {
cbp = sp->gp->dcbp;
if (cbp == NULL) {
@@ -56,6 +56,7 @@ put(SCR *sp, CB *cbp, CHAR_T *namep, MARK *cp, MARK *rp, int append)
return (1);
}
}
+ }
tp = TAILQ_FIRST(cbp->textq);
/*