Nux

Merge lp:~bregma/nux/lp-1226737 into lp:nux

Proposed by Stephen M. Webb
Status: Merged
Approved by: Christopher Townsend
Approved revision: 816
Merged at revision: 816
Proposed branch: lp:~bregma/nux/lp-1226737
Merge into: lp:nux
Diff against target: 15 lines (+1/-4)
1 file modified
tools/unity_support_test.c (+1/-4)
To merge this branch: bzr merge lp:~bregma/nux/lp-1226737
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Christopher Townsend Approve
Review via email: mp+186137@code.launchpad.net

Commit message

initialize all fields of the test results structure to avoid segfaults when Unity support is not available (lp: #1226737)

Description of the change

Initializes all fields of the test results structure to avoid segfaults when Unity support is not available (lp: #1226737).

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

LGTM +1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/unity_support_test.c'
2--- tools/unity_support_test.c 2012-07-04 15:34:45 +0000
3+++ tools/unity_support_test.c 2013-09-17 19:12:53 +0000
4@@ -672,10 +672,7 @@
5 int resultfile;
6 int forcecheck = 0;
7
8- results.indirect = 0;
9- results.compiz = 0;
10- results.flags = 0;
11- results.error = NULL;
12+ memset(&results, 0, sizeof(TestResults));
13
14 // Basic command-line parsing.
15 for (int i = 1; i < argc; i++) {

Subscribers

People subscribed via source and target branches