Skip to content

Commit b201e96

Browse files
committed
Merge branch 'rs/config-write-section-fix' into maint
There was a recent semantic mismerge in the codepath to write out a section of a configuration section, which has been corrected. * rs/config-write-section-fix: config: flip return value of write_section()
2 parents 7bc7776 + 782c030 commit b201e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ static ssize_t write_section(int fd, const char *key)
23152315
struct strbuf sb = store_create_section(key);
23162316
ssize_t ret;
23172317

2318-
ret = write_in_full(fd, sb.buf, sb.len) == sb.len;
2318+
ret = write_in_full(fd, sb.buf, sb.len);
23192319
strbuf_release(&sb);
23202320

23212321
return ret;

0 commit comments

Comments
 (0)