Skip to content
Snippets Groups Projects
Commit 15b25390 authored by arq5x's avatar arq5x
Browse files

step must be non-zero

parent 479a2fc1
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,10 @@ int windowmaker_main(int argc, char* argv[]) {
cerr << endl << "*****" << endl << "*****ERROR: Can't combine -w (window size) and -n (number of windows). Please use one or the other. " << endl << "*****" << endl;
showHelp = true;
}
if (step <= 0) {
cerr << endl << "*****" << endl << "*****ERROR: The step (-s) option must be greater than zero. " << endl << "*****" << endl;
showHelp = true;
}
if (!showHelp) {
WindowMaker *wm = NULL;
if (haveCount)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment