diff --git a/src/vfs/ftpfs/ftpfs.c b/src/vfs/ftpfs/ftpfs.c index b25b2d1ee..5f0b1c3b5 100644 --- a/src/vfs/ftpfs/ftpfs.c +++ b/src/vfs/ftpfs/ftpfs.c @@ -386,7 +386,7 @@ ftpfs_get_reply (struct vfs_class *me, int sock, char *string_buf, int string_le code = 421; return 4; } - switch (sscanf (answer, "%d", &code) != 0) + switch (sscanf (answer, "%d", &code)) { case 0: if (string_buf != NULL)