ftp: Fixed compiler warning

warning: 'result' may be used uninitialized in this function