Skip to content

Commit 51affbd

Browse files
committed
Merge branch 'rs/config-write-section-fix'
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 12e87e2 + 782c030 commit 51affbd

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
@@ -2329,7 +2329,7 @@ static ssize_t write_section(int fd, const char *key)
23292329
struct strbuf sb = store_create_section(key);
23302330
ssize_t ret;
23312331

2332-
ret = write_in_full(fd, sb.buf, sb.len) == sb.len;
2332+
ret = write_in_full(fd, sb.buf, sb.len);
23332333
strbuf_release(&sb);
23342334

23352335
return ret;

0 commit comments

Comments
 (0)