Wireshark mailing list archives

r45615: Read the program name rather than hardcoding it


From: Jakub Zawadzki <darkjames-ws () darkjames pl>
Date: Wed, 17 Oct 2012 16:45:05 +0200

Hi,

I'm not sure if it's correct:

#v+
+  program_name = g_strdup(g_get_prgname());

   persconffile_dir = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s",
-     appdatadir, PF_DIR);
+     appdatadir, program_name);
+  g_free(program_name);

#v-

I think we want the same configuration directory both for wireshark and tshark.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: