FreeBSD Bugzilla – Attachment 160118 Details for
Bug 202499
games/nlarn: Fix build with clang 3.7.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix uninitialized variables in games/nlarn
games__nlarn-fix-uninit-uses.diff (text/plain), 1.99 KB, created by
Dimitry Andric
on 2015-08-19 22:00:44 UTC
(
hide
)
Description:
Fix uninitialized variables in games/nlarn
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2015-08-19 22:00:44 UTC
Size:
1.99 KB
patch
obsolete
>Index: games/nlarn/files/patch-src-monsters.c >=================================================================== >--- games/nlarn/files/patch-src-monsters.c (revision 0) >+++ games/nlarn/files/patch-src-monsters.c (working copy) >@@ -0,0 +1,14 @@ >+--- src/monsters.c.orig 2012-07-06 19:29:35.000000000 +0200 >++++ src/monsters.c 2015-08-19 23:52:50.496120000 +0200 >+@@ -2725,6 +2725,11 @@ static position monster_move_serve(monst >+ map_path_element *pe = g_queue_pop_head(path->path); >+ npos = pe->pos; >+ } >++ else >++ { >++ /* ensure npos is initialized */ >++ npos = m->pos; >++ } >+ >+ if (path != NULL) >+ map_path_destroy(path); > >Property changes on: games/nlarn/files/patch-src-monsters.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: games/nlarn/files/patch-src-player.c >=================================================================== >--- games/nlarn/files/patch-src-player.c (revision 0) >+++ games/nlarn/files/patch-src-player.c (working copy) >@@ -0,0 +1,14 @@ >+--- src/player.c.orig 2012-07-06 19:29:35.000000000 +0200 >++++ src/player.c 2015-08-19 23:56:03.671153000 +0200 >+@@ -1605,6 +1605,11 @@ int player_map_enter(player *p, map *l, >+ else >+ pos = map_find_sobject(l, LS_STAIRSUP); >+ } >++ /* doing nothing? */ >++ else >++ { >++ pos = p->pos; >++ } >+ >+ if (l->nlevel == 0) >+ { > >Property changes on: games/nlarn/files/patch-src-player.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202499
: 160118 |
162853