aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-02 08:28:34 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-02 08:28:34 +0000
commit9f755766f08a007e8a83f94840eec46403638c35 (patch)
treeeed1b882bba7aa0e619335f70db02f99c918fae9 /gtk
parent123d10e6a97612f5aad401fac3cfc7c00bf8892d (diff)
Explain *why* you have to "g_strdup()" the argument to "-r" before
assigning it to "cf_name", so somebody else doesn't make the same mistake I did. svn path=/trunk/; revision=1181
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 0c8209d199..43cf3ec708 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.59 1999/12/02 05:25:59 gram Exp $
+ * $Id: main.c,v 1.60 1999/12/02 08:28:34 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1030,6 +1030,9 @@ main(int argc, char *argv[])
break;
#endif
case 'r': /* Read capture file xxx */
+ /* We may set "last_open_dir" to "cf_name", and if we change
+ "last_open_dir" later, we free the old value, so we have to
+ set "cf_name" to something that's been allocated. */
cf_name = g_strdup(optarg);
break;
case 'R': /* Read file filter */