aboutsummaryrefslogtreecommitdiffstats
path: root/dftest.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-05-25 20:03:26 +0000
committerGuy Harris <guy@alum.mit.edu>2007-05-25 20:03:26 +0000
commitab5a09f4debca6332200002cdea7f4a06bf7683e (patch)
tree95d208a99169ab2b09294d8187fadc01130f0adf /dftest.c
parent88f69b80c0b4a4c476d00c1207b99d26d84e8e6a (diff)
No need to call init_plugin_dir() - it gets called, if necessary, by
get_plugin_dir(). Add checks for the success or failure of init_progfile_dir() in dftest. svn path=/trunk/; revision=21942
Diffstat (limited to 'dftest.c')
-rw-r--r--dftest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dftest.c b/dftest.c
index c1631db8a4..8dd5bce8d2 100644
--- a/dftest.c
+++ b/dftest.c
@@ -59,6 +59,7 @@ static void read_failure_message(const char *filename, int err);
int
main(int argc, char **argv)
{
+ char *init_progfile_dir_error;
char *text;
char *gpf_path, *pf_path;
int gpf_open_errno, gpf_read_errno;
@@ -74,12 +75,11 @@ main(int argc, char **argv)
/*
* Attempt to get the pathname of the executable file.
*/
- init_progfile_dir(argv[0]);
-
- /*
- * Now attempt to get the pathname of the plugins.
- */
- init_plugin_dir();
+ init_progfile_dir_error = init_progfile_dir(argv[0]);
+ if (init_progfile_dir_error != NULL) {
+ fprintf(stderr, "dftest: Can't get pathname of dftest program: %s.\n",
+ init_progfile_dir_error);
+ }
timestamp_set_type(TS_RELATIVE);