Skip to content

Commit

Permalink
more regs init (valgrind)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jul 29, 2024
1 parent ba6612b commit 31da017
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/libc/dos/dos/truename.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
static char *
_truename_internal(const char *file, char *buf, const int try_lfn)
{
__dpmi_regs regs;
__dpmi_regs regs = {};
unsigned short dos_mem_selector = _dos_ds;
int e = errno;
unsigned use_lfn = _USE_LFN;
Expand Down
2 changes: 1 addition & 1 deletion src/libc/posix/sys/stat/filelen.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
long
filelength(int fhandle)
{
__dpmi_regs regs;
__dpmi_regs regs = {};
unsigned short fpos_high, fpos_low;
long retval;

Expand Down
4 changes: 2 additions & 2 deletions src/libc/posix/sys/stat/fstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static unsigned long psp_addr;
static int
fstat_init(void)
{
__dpmi_regs regs;
__dpmi_regs regs = {};
int sft_ptr_addr;
unsigned short true_dos_version;

Expand Down Expand Up @@ -253,7 +253,7 @@ get_sft_entry(int fhandle)
unsigned long htbl_addr;
short sft_idx, retval;

__dpmi_regs regs;
__dpmi_regs regs = {};
_djstat_fail_bits = fstat_init_bits;

/* Force initialization if we were restarted (emacs). */
Expand Down
2 changes: 1 addition & 1 deletion src/libc/posix/sys/stat/is_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int _is_executable(const char *, int, const char *);
unsigned short
_get_magic(const char *s, int fh)
{
__dpmi_regs regs;
__dpmi_regs regs = {};
unsigned short retval;
unsigned short fpos_high = 0, fpos_low = 0;
int read_fail = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/libc/posix/sys/stat/lfilelen.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
long long
lfilelength(int fhandle)
{
__dpmi_regs regs;
__dpmi_regs regs = {};
unsigned short fpos_high, fpos_low;
long long retval;

Expand Down
2 changes: 1 addition & 1 deletion src/libc/posix/sys/stat/lstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ init_dirent_table (void)
unsigned short dirent_offset;
unsigned short true_dos_version;
unsigned short dos_major, dos_minor;
__dpmi_regs regs;
__dpmi_regs regs = {};

if (dirent_count == -1) /* we already tried and found we can't */
return 0;
Expand Down

0 comments on commit 31da017

Please sign in to comment.