[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-commits
Subject:    [haiku-commits] haiku: hrev46451 - src/system/libroot/os
From:       anevilyak () gmail ! com
Date:       2013-11-27 2:46:55
Message-ID: 20131127024655.B44425C0D88 () vmrepo ! haiku-os ! org
[Download RAW message or body]

hrev46451 adds 1 changeset to branch 'master'
old head: 754bbf4866278ecd2da2c517560bc90c67a3a6f5
new head: 09a891921385287519be8dbd01da602630cfe406
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=09a8919+%5E754bbf4

----------------------------------------------------------------------------

09a8919: InstallationLocations: Add missing static specifiers.
  
  - Fixes a crash in find_paths() due to the InstallationLocations object getting overwritten.
  
  Thanks to Chris Roberts for reporting.

                                         [ Rene Gollent <rene@gollent.com> ]

----------------------------------------------------------------------------

Revision:    hrev46451
Commit:      09a891921385287519be8dbd01da602630cfe406
URL:         http://cgit.haiku-os.org/haiku/commit/?id=09a8919
Author:      Rene Gollent <rene@gollent.com>
Date:        Wed Nov 27 02:45:02 2013 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 2 deletions(-)
src/system/libroot/os/find_paths.cpp | 4 ++--

----------------------------------------------------------------------------

diff --git a/src/system/libroot/os/find_paths.cpp b/src/system/libroot/os/find_paths.cpp
index 6b8cd87..bfc0200 100644
--- a/src/system/libroot/os/find_paths.cpp
+++ b/src/system/libroot/os/find_paths.cpp
@@ -87,8 +87,8 @@ public:
 
 	static InstallationLocations* Default()
 	{
-		char sBuffer[sizeof(InstallationLocations)];
-		InstallationLocations* sDefaultLocations
+		static char sBuffer[sizeof(InstallationLocations)];
+		static InstallationLocations* sDefaultLocations
 			= new(&sBuffer) InstallationLocations;
 		return sDefaultLocations;
 	}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic