aboutsummaryrefslogtreecommitdiff
path: root/src/binlogsel.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-06-01 16:18:16 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2014-06-01 16:18:16 +0300
commit6c0f32b6f37bbb70445731988b5ac180ef054357 (patch)
tree42aeef0a6c6cba71f38ecd9cae165a48c31f1cf2 /src/binlogsel.c
parentb425cc797090c46c3c9ab7b3052d322c4224bd76 (diff)
downloadvmod-binlog-6c0f32b6f37bbb70445731988b5ac180ef054357.tar.gz
vmod-binlog-6c0f32b6f37bbb70445731988b5ac180ef054357.tar.bz2
Bugfixes.
* src/binlogsel.c (mkfilename): Return a copy of file name if dir is NULL. (main): Directory (-D) defaults to cwd.
Diffstat (limited to 'src/binlogsel.c')
-rw-r--r--src/binlogsel.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/binlogsel.c b/src/binlogsel.c
index c448bd5..d44c1b8 100644
--- a/src/binlogsel.c
+++ b/src/binlogsel.c
@@ -513,3 +513,6 @@ mkfilename(const char *dir, const char *file)
char *ret;
-
+
+ if (!dir)
+ return xstrdup(file);
+
dirlen = strlen(dir);
@@ -1084,2 +1087,4 @@ main(int argc, char **argv)
} else {
+ if (!directory)
+ directory = ".";
selidx_year(directory);

Return to:

Send suggestions and report system problems to the System administrator.