Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3f92030e
Commit
3f92030e
authored
Jun 14, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Zero the memory of the s1 structure in test_simple_struct to avoid a Valgrind warning.
parent
fd8cb3f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+4
-1
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
3f92030e
...
@@ -933,6 +933,9 @@ static void test_simple_struct(void)
...
@@ -933,6 +933,9 @@ static void test_simple_struct(void)
};
};
/* zero the entire structure, including the holes */
memset
(
&
s1
,
0
,
sizeof
(
s1
));
/* FC_STRUCT */
/* FC_STRUCT */
s1
.
s
=
0x1234
;
s1
.
s
=
0x1234
;
s1
.
c
=
0xa5
;
s1
.
c
=
0xa5
;
...
@@ -956,7 +959,7 @@ static void test_simple_struct(void)
...
@@ -956,7 +959,7 @@ static void test_simple_struct(void)
}
}
/* zero the entire structure, including the hole */
/* zero the entire structure, including the hole */
memset
(
&
ps1
,
0
,
sizeof
(
&
ps1
));
memset
(
&
ps1
,
0
,
sizeof
(
ps1
));
/* FC_PSTRUCT */
/* FC_PSTRUCT */
ps1
.
l1
=
0xdeadbeef
;
ps1
.
l1
=
0xdeadbeef
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment