]> git.ipfire.org Git - thirdparty/util-linux.git/commit
flock: fix sizeof usage [clang -Wsizeof-pointer-memaccess]
authorKarel Zak <kzak@redhat.com>
Thu, 19 Jan 2012 18:30:31 +0000 (19:30 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Jan 2012 18:30:31 +0000 (19:30 +0100)
commit1bbf82037795bb4ed2b2af21f2ae2e43d3e20f50
tree7bb0c239a1c8701221f44301b4358e2ceb6016a9
parentabbc7b4a14287746253d47218576410879839597
flock: fix sizeof usage [clang -Wsizeof-pointer-memaccess]

flock.c:90:23: warning: argument to 'sizeof' in 'memset' call is the
same expression as the destination; did you mean to dereference it?
      [-Wsizeof-pointer-memaccess]
        memset(sa, 0, sizeof sa);
               ~~            ^~

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/flock.c