aboutsummaryrefslogtreecommitdiffstats
path: root/tap-h225rassrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tap-h225rassrt.c')
-rw-r--r--tap-h225rassrt.c7
1 files changed, 3 insertions, 4 deletions
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));