From 21613e19af31f83264ff327e74ae123e75222569 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Fri, 18 Jan 2008 19:14:30 +0000 Subject: [PATCH] constify parse_options parameter like it is done in wine svn path=/trunk/; revision=31877 --- reactos/lib/3rdparty/libwine/debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/lib/3rdparty/libwine/debug.c b/reactos/lib/3rdparty/libwine/debug.c index b9429eeaf33..845f6f9af96 100644 --- a/reactos/lib/3rdparty/libwine/debug.c +++ b/reactos/lib/3rdparty/libwine/debug.c @@ -134,11 +134,12 @@ static void add_option( const char *name, unsigned char set, unsigned char clear } /* parse a set of debugging option specifications and add them to the option list */ -static void parse_options( char *options ) +static void parse_options( const char *str ) { - char *opt, *next; + 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 @@ static void parse_options( char *options ) else add_option( p, set, clear ); } + free( options ); } /* initialize all options at startup */