minor fix in lib/si/dir.c

This commit is contained in:
hyung-hwan 2019-12-23 04:25:34 +00:00
parent a3ac936eab
commit 58017aedb4

View File

@ -883,10 +883,10 @@ int qse_dir_read (qse_dir_t* dir, qse_dir_ent_t* ent)
int x; int x;
void* name; void* name;
x = read_dir_to_buf (dir, &name); x = read_dir_to_buf(dir, &name);
if (x >= 1) if (x >= 1)
{ {
QSE_MEMSET (ent, 0, QSE_SIZEOF(ent)); QSE_MEMSET (ent, 0, QSE_SIZEOF(*ent));
ent->name = name; ent->name = name;
} }