Use the variable instead of type for sizeof.

This commit is contained in:
Roy Marples
2008-01-30 15:01:37 +00:00
parent 3506cb2dc7
commit 84ad9a40a6
5 changed files with 14 additions and 14 deletions

View File

@@ -52,7 +52,7 @@ static int do_check (char *path, uid_t uid, gid_t gid, mode_t mode, int file)
{
struct stat st;
memset (&st, 0, sizeof (struct stat));
memset (&st, 0, sizeof (st));
if (stat (path, &st)) {
if (file) {