mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue