It should prevent a segfault if the complex nesting of "if" fails to set a variable.
Thanks to ItalianPenguin for reporting this bug.
SET(sarg_VERSION 2)
SET(sarg_REVISION "3.1-pre1")
SET(sarg_BUILD "")
-SET(sarg_BUILDDATE "Aug-25-2010")
+SET(sarg_BUILDDATE "Aug-27-2010")
INCLUDE(AddFileDependencies)
INCLUDE(CheckIncludeFile)
SARG ChangeLog
-Aug-17-2010 Version 2.3.1
+Aug-27-2010 Version 2.3.1
- Remove the distinct printf for the alpha architecture as it doesn't work anymore and is not necessary anyway.
- Don't abort if "onload" or "script" is found in the user agent string.
- Take the configured locale path into account when installing sarg.
- Fix a problem with the progress indicator when reading from a compressed log file.
- Report an error if the output directory is a subdirectory of the temporary directory.
- Use a more robust protection against an attack using javascript in the useragent string.
+ - Prevent a segfault if the parameter passed to command line option -d is invalid (thanks to ItalianPenguin).
Jun-21-2010 Version 2.3
- LDAP usertab added.
-#define VERSION PACKAGE_VERSION" Aug-25-2010"
+#define VERSION PACKAGE_VERSION" Aug-27-2010"
#define PGM PACKAGE_NAME
#define URL "http://sarg.sourceforge.net"
void date_from(char *date, int *dfrom, int *duntil)
{
- int d0;
- int m0;
- int y0;
- int d1;
- int m1;
- int y1;
+ int d0=0;
+ int m0=0;
+ int y0=0;
+ int d1=0;
+ int m1=0;
+ int y1=0;
if (isdigit(date[0])) {
int next=-1;