Author: nieklinnenbank Date: Sun Jul 5 07:44:27 2009 New Revision: 198 Modified: trunk/srv/filesystem/linn/LinnDump.cpp Log: LinnDump: print the string 'Never' for zero-value timestamps. Modified: trunk/srv/filesystem/linn/LinnDump.cpp ============================================================================== --- trunk/srv/filesystem/linn/LinnDump.cpp (original) +++ trunk/srv/filesystem/linn/LinnDump.cpp Sun Jul 5 07:44:27 2009 @@ -28,6 +28,11 @@ char *buff = (char *) malloc(128); struct tm *tm; + /* Check for zero timestamps. */ + if (!timestamp) + { + return strdup("Never"); + } /* Fill in the time struct. */ tm = gmtime((const time_t *) ×tamp);