aboutsummaryrefslogtreecommitdiffstats
path: root/dftest.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-22 00:42:33 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-22 00:42:33 +0000
commitad4407127e9ba9e46ff7eaa0f61c3a12ac24e704 (patch)
tree482edf3d6252f8d9a398a01dc3838029585feb4f /dftest.c
parent28cb065b92d4359a1217aa1353469eabbdfa17ec (diff)
Attempt to use dladdr() to get the pathname of the executable image if
it's available and works. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27812 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'dftest.c')
-rw-r--r--dftest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dftest.c b/dftest.c
index 84b198cbde..7fbadd8bc7 100644
--- a/dftest.c
+++ b/dftest.c
@@ -75,7 +75,8 @@ main(int argc, char **argv)
/*
* Attempt to get the pathname of the executable file.
*/
- init_progfile_dir_error = init_progfile_dir(argv[0]);
+ init_progfile_dir_error = init_progfile_dir(argv[0],
+ (const void *)main);
if (init_progfile_dir_error != NULL) {
fprintf(stderr, "dftest: Can't get pathname of dftest program: %s.\n",
init_progfile_dir_error);