Bug 86381 - xf86-video-v4l-0.2.0/src/v4l.c:1154: bad call to memset ?
Summary: xf86-video-v4l-0.2.0/src/v4l.c:1154: bad call to memset ?
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/other (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Depends on:
Reported: 2014-11-17 09:45 UTC by dcb314
Modified: 2018-08-10 21:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description dcb314 2014-11-17 09:45:49 UTC
v4l.c:1154:39: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess]

       memset(&pPPriv->cap, 0, sizeof(&pPPriv->cap));

Maybe better code 

       memset(&pPPriv->cap, 0, sizeof(pPPriv->cap));
Comment 1 GitLab Migration User 2018-08-10 21:37:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-v4l/issues/1.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.