diff options
Diffstat (limited to 'cforum.c')
-rw-r--r-- | cforum.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -70,7 +70,7 @@ main(int argc, char *argv[]) } /* Parse query string. */ - postid = userid = -1; + postid = userid = 0; while(p = nextparam(GET, 128)){ v = split(p); if(strcmp(p, "post") == 0) postid = atoi(v); @@ -78,9 +78,9 @@ main(int argc, char *argv[]) } /* Handle request. */ - if(postid != -1) + if(postid) showpost(postid); - else if(userid != -1) + else if(userid) showuser(userid); else showfront(); |