From: Andre Noll Date: Sat, 22 Mar 2008 11:51:18 +0000 (+0100) Subject: Kill unused dss_error_txt. X-Git-Tag: v0.0.4~9 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=27edbe5dcf615a3c445f719b5833af4d392c5874 Kill unused dss_error_txt. --- diff --git a/dss.c b/dss.c index 69e6984..3d00b0b 100644 --- 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;