struct rxpd_rule* self = rxpd_malloc (sizeof (struct rxpd_rule));
llist_init (&self->node);
+ self->atime = (time_t)-1;
if (*buf != '#')
{
char* rxstart = namestart? strchr (namestart+1, ':') : NULL;
if (!rxstart)
- self->string = rxpd_strdup ("#ERROR: Syntax error, line was neither a comment nor a rule");
+ self->string = rxpd_strdup ("#ERROR: Syntax error, line was neither a comment nor a rule");
else
{
- if (namestart == buf)
- /* No atime given */
- self->atime = (time_t)-1;
- else
+ if (namestart != buf)
{
/* atime given */
self->atime = atoi (buf);
}
}
else
- {
- self->atime = (time_t)-1;
- self->string = rxpd_strdup (buf);
- }
+ self->string = rxpd_strdup (buf);
return self;
}