Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
gf2x
gf2x-memset.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gf2x-memset.diff of Package gf2x
From: Jan Engelhardt <jengelh@inai.de> Date: 2015-06-26 10:35:59.446493341 +0200 build: resolve compiler warning gf2x.c:82:24: warning: 'sizeof' on array function parameter 'p' will return size of 'struct gf2x_mul_pool_s *' [-Wsizeof-array-argument] memset(p, 0, sizeof(p)); --- gf2x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: gf2x-1.1/gf2x.c =================================================================== --- gf2x-1.1.orig/gf2x.c +++ gf2x-1.1/gf2x.c @@ -79,7 +79,7 @@ static gf2x_mul_pool_t global_pool; void gf2x_mul_pool_init(gf2x_mul_pool_t p) { - memset(p, 0, sizeof(p)); + memset(p, 0, sizeof(*p)); } void gf2x_mul_pool_clear(gf2x_mul_pool_t p)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor