Removed unused code in daemon

Value of variable 'ptr' is overwritten by next line.