Skip to content

Commit 222a7ca

Browse files
author
deadwood
committed
Make names global so that they are not destroyed at function return.
1 parent 3976730 commit 222a7ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

workbench/system/AboutAROS/aboutaros.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ struct AboutAROS_DATA
5959
APTR aad_Pool;
6060
};
6161

62+
static STRPTR pages[4] = { NULL };
63+
6264
/*** Utility Functions ******************************************************/
6365
STRPTR Section2Name(ULONG section)
6466
{
@@ -188,7 +190,6 @@ Object *AboutAROS__OM_NEW(Class *CLASS, Object *self, struct opSet *message)
188190
*sponsorsList,
189191
*acknowledgementsList;
190192

191-
STRPTR pages[4] = { NULL };
192193
STRPTR str_builddate = NULL;
193194
STRPTR str_variant = NULL;
194195
STRPTR str_arosarch = NULL;

0 commit comments

Comments
 (0)