[Openslp-devel] Deadcode in SLPDRegFileReadSrvReg()
Brought to you by:
jcalcote
From: Vitezslav C. <vcr...@re...> - 2014-08-05 11:57:54
|
Hello again, And there's another minor issue - redundant check for "attrlist == 0" in SLPDRegFileReadSrvReg() (openslp-2.0.0/slpd/slpd_regfile.c). The condition on line 347 can't be TRUE, because in the previous block of code "attrlist" variable is set to non NULL value (or the function exits in case of insufficient memory) - in the TRUE branch see line 325, in the FALSE branch see line 343. Attached patch removes the redundant check and non reachable code inside the block. Best regards, Vitezslav Crhonek |