Make mklocale work again, now that fwrite()'s return codes are different.
Submitted by: Navdeep Parhar <nparhar gmail com> Approved by: re (kib)
This commit is contained in:
parent
3d22427cff
commit
523a386d23
@ -730,8 +730,8 @@ dump_tables()
|
||||
/*
|
||||
* PART 6: And finally the variable data
|
||||
*/
|
||||
if (fwrite(variable,
|
||||
ntohl(new_locale.variable_len), 1, fp) != 1) {
|
||||
if (new_locale.variable_len != 0 &&
|
||||
fwrite(variable, ntohl(new_locale.variable_len), 1, fp) != 1) {
|
||||
perror(locale_file);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user