aboutsummaryrefslogtreecommitdiff
path: root/cforum.c
diff options
context:
space:
mode:
Diffstat (limited to 'cforum.c')
-rw-r--r--cforum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cforum.c b/cforum.c
index f29d423..19dee61 100644
--- a/cforum.c
+++ b/cforum.c
@@ -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();