ftp: fix using uninitialized value