From: yeechan <ibm...@us...> - 2005-07-18 20:29:53
|
Update of /cvsroot/sblim/sfcb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29558 Modified Files: datetime.c Log Message: defect # 1238359 Index: datetime.c =================================================================== RCS file: /cvsroot/sblim/sfcb/datetime.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- datetime.c 8 Jul 2005 22:15:29 -0000 1.3 +++ datetime.c 18 Jul 2005 20:29:35 -0000 1.4 @@ -318,19 +318,17 @@ CMPIUint64 msecs,secs; CMPIBoolean interval; + char *str; - if (string == NULL) - { + if (string == NULL) { if (rc) CMSetStatus(rc, CMPI_RC_ERR_INVALID_PARAMETER); return; } - -char *str = strdup(string); +str = strdup(string); interval = (str[21] == ':'); - // 0000000000111111111122222 // 0123456789012345678901234 // yyyymmddhhmmss mmmmmmsutc |