diff options
author | mi <mi@FreeBSD.org> | 2004-04-21 04:00:16 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2004-04-21 04:00:16 +0800 |
commit | b6ef0b0ff557df9e8ae6d0375be3af02dd2bb1e2 (patch) | |
tree | b26a8555df8d045ed22194399b9b734147ebafc2 /databases/dbf/files | |
parent | 4d908b26630cef3b8ca7f1fe677d77db4c20e9d2 (diff) | |
download | freebsd-ports-gnome-b6ef0b0ff557df9e8ae6d0375be3af02dd2bb1e2.tar.gz freebsd-ports-gnome-b6ef0b0ff557df9e8ae6d0375be3af02dd2bb1e2.tar.zst freebsd-ports-gnome-b6ef0b0ff557df9e8ae6d0375be3af02dd2bb1e2.zip |
Update from 0.8.3 to 0.8.3.1 -- some of my patches were quietly incorporated
and the 0.8.3 is no longer available.
Diffstat (limited to 'databases/dbf/files')
-rw-r--r-- | databases/dbf/files/patch-dbf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/databases/dbf/files/patch-dbf.c b/databases/dbf/files/patch-dbf.c index 2f78adce4eb5..c79a8ed3f854 100644 --- a/databases/dbf/files/patch-dbf.c +++ b/databases/dbf/files/patch-dbf.c @@ -4,7 +4,7 @@ int dbfhandle; FILE *output = NULL; int header_length, record_length, i; -- const char *filename, *export_filename; +- const char *filename = NULL, *export_filename = NULL; + const char *filename, *export_filename = NULL; headerMethod writeHeader = NULL; lineMethod writeLine = printDBF; @@ -14,15 +14,15 @@ if (argc < 2) { fprintf(stderr, "Usage: %s [option][argument] dbf-file, -h for help\n", *argv); -@@ -342,7 +342,7 @@ +@@ -342,7 +342,4 @@ if (verbosity > 0) banner(); -- if(0 == strcmp(export_filename, "-")) -+ if(!export_filename || (0 == strcmp(export_filename, "-"))) - output = stdout; - else - output = export_open(export_filename); +- if(export_filename && 0 == strcmp(export_filename, "-")) +- output = stdout; +- else +- output = export_open(export_filename); ++ output = export_open(export_filename); @@ -372,12 +372,7 @@ /* At this point we look if the following data set is deleted */ lseek(dbfhandle, rotate2b(db->header_length), SEEK_SET); |