]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Report an error if the requested date range is invalid. Previous versions would silen...
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 25 Aug 2010 05:52:25 +0000 (05:52 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 25 Aug 2010 05:52:25 +0000 (05:52 +0000)
CMakeLists.txt
include/info.h
util.c

index 250193be21279d28a34b768c28d6ee40609c24c0..893c78eee68f1067337692839e9c0106aa23da89 100755 (executable)
@@ -3,7 +3,7 @@ PROJECT(sarg C)
 SET(sarg_VERSION 2)
 SET(sarg_REVISION "3.1-pre1")
 SET(sarg_BUILD "")
-SET(sarg_BUILDDATE "Aug-17-2010")
+SET(sarg_BUILDDATE "Aug-25-2010")
 
 INCLUDE(AddFileDependencies)
 INCLUDE(CheckIncludeFile)
index 641352005164236b6755993dee7b2091f5675ea9..c76d936670805887a2c106f29bd23d354425d550 100755 (executable)
@@ -1,3 +1,3 @@
-#define VERSION PACKAGE_VERSION" Aug-17-2010"
+#define VERSION PACKAGE_VERSION" Aug-25-2010"
 #define PGM PACKAGE_NAME
 #define URL "http://sarg.sourceforge.net"
diff --git a/util.c b/util.c
index 6c6439c470d0f845d5b5f13ca545474c494dbbfc..de65878b7dc8f08904cbef2180b85bd12c6c02e1 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1271,6 +1271,9 @@ void date_from(char *date, int *dfrom, int *duntil)
          y1=Date0->tm_year+1900;
          m1=Date0->tm_mon+1;
          d1=Date0->tm_mday;
+      } else {
+         debuga(_("Invalid date range passed on command line\n"));
+         exit(EXIT_FAILURE);
       }
    }