Kill unused dss_error_txt.
authorAndre Noll <maan@systemlinux.org>
Sat, 22 Mar 2008 11:51:18 +0000 (12:51 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 22 Mar 2008 11:51:18 +0000 (12:51 +0100)
dss.c

diff --git a/dss.c b/dss.c
index 69e6984..3d00b0b 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -30,7 +30,6 @@
 
 
 struct gengetopt_args_info conf;
-char *dss_error_txt = NULL;
 static FILE *logfile;
 static int signal_pipe;
 
@@ -180,10 +179,8 @@ int is_snapshot(const char *dirname, int64_t now, struct snapshot *s)
        tmp[i] = '\0';
        ret = dss_atoi64(tmp, &num);
        free(tmp);
-       if (ret < 0) {
-               free(dss_error_txt);
+       if (ret < 0)
                return 0;
-       }
        assert(num >= 0);
        if (num > now)
                return 0;
@@ -212,10 +209,8 @@ int is_snapshot(const char *dirname, int64_t now, struct snapshot *s)
        tmp[i] = '\0';
        ret = dss_atoi64(tmp, &num);
        free(tmp);
-       if (ret < 0) {
-               free(dss_error_txt);
+       if (ret < 0)
                return 0;
-       }
        if (num > now)
                return 0;
        s->completion_time = num;