by frag.machine » Wed Oct 13, 2010 4:17 pm
Just took a quick look, but looks like nobody is initializing val before it's being referenced, correct ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC 
(LordHavoc)