Fix kdesudo hang when no arguments are provided

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesudo@1248417 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent e5b073adf7
commit e3a580bb5d

@ -93,6 +93,10 @@ int main(int argc, char **argv)
executable = commandlist[0];
}
}
else {
kdError() << I18N_NOOP("You must provide the name of the executable you want to run as an argument to kdesudo") << endl;
exit(1);
}
/* We have to make sure the executable is only the binary name */
executableList = TQStringList::split(" ", executable);

Loading…
Cancel
Save