summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-07-13 05:43:59 +0000
committerGuy Harris <guy@alum.mit.edu>2004-07-13 05:43:59 +0000
commitf0fc7264f4b3389dd2f5d2a2509b847a1b43cbfc (patch)
tree02a69cf0e790e9a9e232db8811f62b36e86906fa
parent730b52454543b216d2b3797b32436d7e094396b7 (diff)
downloadwireshark-f0fc7264f4b3389dd2f5d2a2509b847a1b43cbfc.tar.gz
From Pavel Kankovsky: the items pointed to by elements in the "text[]"
array are all "g_free()"d, so they have to be "g_malloc()"ed - instead of setting some to "", set them to "g_strdup("")". svn path=/trunk/; revision=11370
-rw-r--r--gtk/capture_prefs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/capture_prefs.c b/gtk/capture_prefs.c
index 557c451057..8f9381a5ac 100644
--- a/gtk/capture_prefs.c
+++ b/gtk/capture_prefs.c
@@ -1,7 +1,7 @@
/* capture_prefs.c
* Dialog box for capture preferences
*
- * $Id: capture_prefs.c,v 1.38 2004/06/20 14:48:23 ulfl Exp $
+ * $Id: capture_prefs.c,v 1.39 2004/07/13 05:43:59 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -638,7 +638,7 @@ ifopts_options_add(GtkCList *clist, if_info_t *if_info)
if (if_info->description != NULL)
text[1] = g_strdup(if_info->description);
else
- text[1] = "";
+ text[1] = g_strdup("");
/* set empty description */
text[2] = g_strdup("");
/* check if interface is "hidden" */
@@ -662,7 +662,7 @@ ifopts_options_add(GtkCList *clist, if_info_t *if_info)
if (if_info->description != NULL)
text[1] = g_strdup(if_info->description);
else
- text[1] = "";
+ text[1] = g_strdup("");
/* set empty description */
text[2] = g_strdup("");
/* interface is not "hidden" */