File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2824,7 +2824,7 @@ static int git_config_copy_or_rename_section_in_file(const char *config_filename
2824
2824
* multiple [branch "$name"] sections.
2825
2825
*/
2826
2826
if (copystr .len > 0 ) {
2827
- if (write_in_full (out_fd , copystr .buf , copystr .len ) != copystr . len ) {
2827
+ if (write_in_full (out_fd , copystr .buf , copystr .len ) < 0 ) {
2828
2828
ret = write_error (get_lock_file_path (& lock ));
2829
2829
goto out ;
2830
2830
}
@@ -2886,7 +2886,7 @@ static int git_config_copy_or_rename_section_in_file(const char *config_filename
2886
2886
* logic in the loop above.
2887
2887
*/
2888
2888
if (copystr .len > 0 ) {
2889
- if (write_in_full (out_fd , copystr .buf , copystr .len ) != copystr . len ) {
2889
+ if (write_in_full (out_fd , copystr .buf , copystr .len ) < 0 ) {
2890
2890
ret = write_error (get_lock_file_path (& lock ));
2891
2891
goto out ;
2892
2892
}
You can’t perform that action at this time.
0 commit comments