Author: cwittich
Date: Fri Jan 18 22:14:30 2008
New Revision: 31877
URL:
http://svn.reactos.org/svn/reactos?rev=31877&view=rev
Log:
constify parse_options parameter like it is done in wine
Modified:
trunk/reactos/lib/3rdparty/libwine/debug.c
Modified: trunk/reactos/lib/3rdparty/libwine/debug.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/libwine/debug…
==============================================================================
--- trunk/reactos/lib/3rdparty/libwine/debug.c (original)
+++ trunk/reactos/lib/3rdparty/libwine/debug.c Fri Jan 18 22:14:30 2008
@@ -134,11 +134,12 @@
}
/* parse a set of debugging option specifications and add them to the option list */
-static void parse_options( char *options )
-{
- char *opt, *next;
+static void parse_options( const char *str )
+{
+ char *opt, *next, *options;
unsigned int i;
+ if (!(options = _strdup(str))) return;
for (opt = options; opt; opt = next)
{
const char *p;
@@ -178,6 +179,7 @@
else
add_option( p, set, clear );
}
+ free( options );
}
/* initialize all options at startup */