ges-launch: Handle return value of regcomp()

This commit is contained in:
Edward Hervey 2011-03-15 14:02:14 +01:00
parent 8927e8d72e
commit bf2c2b8f7a

View file

@ -95,7 +95,8 @@ check_time (char *time)
if (!compiled) {
compiled = TRUE;
regcomp (&re, "^[0-9]+(.[0-9]+)?$", REG_EXTENDED | REG_NOSUB);
if (regcomp (&re, "^[0-9]+(.[0-9]+)?$", REG_EXTENDED | REG_NOSUB))
return FALSE;
}
if (!regexec (&re, time, (size_t) 0, NULL, 0))