From 5fb6e97fb43b2b7929a7bb20b1d408b798d95551 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 6 Aug 2005 03:44:55 +0000 Subject: Squelch more const warnings (and fix some memory leaks that found). _U_-ify some unused arguments, rather than assigning them to themselves. Un-constify one variable that gets assigned a mallocated pointer. Clean up indentation. svn path=/trunk/; revision=15236 --- tap-h225rassrt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tap-h225rassrt.c') diff --git a/tap-h225rassrt.c b/tap-h225rassrt.c index 55abf24b80..c4fc55c9fc 100644 --- a/tap-h225rassrt.c +++ b/tap-h225rassrt.c @@ -211,17 +211,16 @@ h225rassrt_draw(void *phs) static void -h225rassrt_init(char *optarg) +h225rassrt_init(const char *optarg) { h225rassrt_t *hs; - char *filter=NULL; + const char *filter=NULL; GString *error_string; if(!strncmp(optarg,"h225,srt,",9)){ filter=optarg+9; } else { - filter=g_malloc(1); - *filter='\0'; + filter=""; } hs = g_malloc(sizeof(h225rassrt_t)); -- cgit v1.2.3