Browse Source

Fix access to uninitialized variable in innodb error message in case WriteFile() fails.

pull/843/head
Vladislav Vaintroub 14 years ago
parent
commit
eb30253d69
  1. 2
      storage/innobase/os/os0file.c
  2. 2
      storage/xtradb/os/os0file.c

2
storage/innobase/os/os0file.c

@ -2556,7 +2556,7 @@ retry:
"InnoDB: Check also that the disk is not full"
" or a disk quota exceeded.\n",
name, (ulong) offset_high, (ulong) offset,
(ulong) n, (ulong) len, (ulong) err);
(ulong) n, ret ? len : 0, (ulong) err);
if (strerror((int)err) != NULL) {
fprintf(stderr,

2
storage/xtradb/os/os0file.c

@ -2785,7 +2785,7 @@ retry:
"InnoDB: Check also that the disk is not full"
" or a disk quota exceeded.\n",
name, (ulong) offset_high, (ulong) offset,
(ulong) n, (ulong) len, (ulong) err);
(ulong) n, ret ? len : 0, (ulong) err);
if (strerror((int)err) != NULL) {
fprintf(stderr,

Loading…
Cancel
Save