diff --git a/samba/source/client/mount.cifs.c b/samba/source/client/mount.cifs.c index a947dd1..b895fd9 100644 --- a/samba/source/client/mount.cifs.c +++ b/samba/source/client/mount.cifs.c @@ -1098,8 +1098,8 @@ int main(int argc, char ** argv) } mountpoint = argv[2]; } else { - if ((strcmp (argv[1], "--version") == 0) || - ((strcmp (argv[1], "-V") == 0))) { + if (argv[1] && ((strcmp (argv[1], "--version") == 0) || + ((strcmp (argv[1], "-V") == 0)))) { printf ("mount.cifs version: %s.%s%s\n", MOUNT_CIFS_VERSION_MAJOR, MOUNT_CIFS_VERSION_MINOR,