diff options
Diffstat (limited to 'meta/recipes-sato/puzzles/files/0001-rect-Fix-compiler-errors-about-uninitialized-use-of-.patch')
-rw-r--r-- | meta/recipes-sato/puzzles/files/0001-rect-Fix-compiler-errors-about-uninitialized-use-of-.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta/recipes-sato/puzzles/files/0001-rect-Fix-compiler-errors-about-uninitialized-use-of-.patch b/meta/recipes-sato/puzzles/files/0001-rect-Fix-compiler-errors-about-uninitialized-use-of-.patch deleted file mode 100644 index 0b971c432e..0000000000 --- a/meta/recipes-sato/puzzles/files/0001-rect-Fix-compiler-errors-about-uninitialized-use-of-.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 78d6d1706c21ad467520075ff7a8bf15cfbd68b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 30 Dec 2015 22:13:16 +0000 | ||
4 | Subject: [PATCH] rect: Fix compiler errors about uninitialized use of | ||
5 | variables | ||
6 | |||
7 | error: 'r2.x' may be used uninitialized in this function | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Submitted | ||
12 | |||
13 | rect.c | 3 ++- | ||
14 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/rect.c b/rect.c | ||
17 | index 55667c0..fa3a786 100644 | ||
18 | --- a/rect.c | ||
19 | +++ b/rect.c | ||
20 | @@ -1317,7 +1317,8 @@ static char *new_game_desc(const game_params *params_in, random_state *rs, | ||
21 | if (ndirs > 0) { | ||
22 | int which, dir; | ||
23 | struct rect r1, r2; | ||
24 | - | ||
25 | + memset(&r1, 0, sizeof(struct rect)); | ||
26 | + memset(&r2, 0, sizeof(struct rect)); | ||
27 | which = random_upto(rs, ndirs); | ||
28 | dir = dirs[which]; | ||
29 | |||
30 | -- | ||
31 | 2.6.4 | ||
32 | |||