Changed order of input to strcmp

This commit is contained in:
Ashish Kumar Yadav 2020-07-14 02:49:38 +05:30
parent 35f3972aa5
commit 6518005d01

View file

@ -287,7 +287,7 @@ main(int argc, char *argv[])
{ {
writepid(); writepid();
if (argc > 2) if (argc > 2)
if (strcmp("-d", argv[1]) == 0) if (strcmp(argv[1], "-d") == 0)
delim = argv[2]; delim = argv[2];
delimlength = strlen(delim) + 1; delimlength = strlen(delim) + 1;
if (!(dpy = XOpenDisplay(NULL))) { if (!(dpy = XOpenDisplay(NULL))) {