kdesudo: remove unused variable in main()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-28 23:40:26 +03:00
parent ac0c225fe8
commit 8ef70f7c75

View file

@ -99,7 +99,7 @@ int main(int argc, char **argv)
KApplication a; KApplication a;
a.disableSessionManagement(); a.disableSessionManagement();
QString executable, arg, command, icon; QString executable, icon;
QStringList executableList, commandlist; QStringList executableList, commandlist;
KDesktopFile *desktopFile; KDesktopFile *desktopFile;
@ -108,12 +108,12 @@ int main(int argc, char **argv)
} }
if (args->count() && executable.isEmpty()) { if (args->count() && executable.isEmpty()) {
command = args->arg(0); QString command = args->arg(0);
commandlist = command.split(" "); commandlist = command.split(" ");
executable = commandlist[0]; executable = commandlist[0];
} }
/* We have to make sure the executable is only the binary name */ /* Have to make sure the executable is only the binary name */
executableList = executable.split(" "); executableList = executable.split(" ");
executable = executableList[0]; executable = executableList[0];