sres.c: fixed klocwork issues
sres.c: fixed klocwork issues

darcs-hash:20080520161530-65a35-7cc373c268adbde21680cf5e02b4d2f1b465c0b9.gz

erdincay/sofia-sip,unispeech/sofia-sip,BelledonneCommunications/sofia-sip,erdincay/sofia-sip,unispeech/sofia-sip,xhook/sofia-sip,BelledonneCommunications/sofia-sip,unispeech/sofia-sip,xhook/sofia-sip,xhook/sofia-sip,unispeech/sofia-sip,BelledonneCommunications/sofia-sip,jart/sofia-sip,erdincay/sofia-sip,xhook/sofia-sip,xhook/sofia-sip,jart/sofia-sip,jart/sofia-sip,erdincay/sofia-sip,BelledonneCommunications/sofia-sip