- if ((p = strchr(template, '~')) != strrchr(template, '~')) return NULL;
- if ((q = strchr(template, '?')) != strrchr(template, '?')) return NULL;
- if (p && !userid) return NULL;
- if (q && !tokenid) return NULL;
+ if ((p = strchr(template, '~')) != strrchr(template, '~')) return 0;
+ if ((q = strchr(template, '?')) != strrchr(template, '?')) return 0;
+ if (p && !userid) return 0;
+ if (q && !tokenid) return 0;