]> git.sur5r.net Git - i3/i3lock/commit
Fix overwrite of getopt optind 135/head
authorjakob <grandchild@gmx.net>
Thu, 6 Jul 2017 14:52:32 +0000 (16:52 +0200)
committerjakob <grandchild@gmx.net>
Thu, 6 Jul 2017 15:08:12 +0000 (17:08 +0200)
commitcddb87420bad8e61f0cddfa1028dc0c87fb9ba04
treef4cb92b483e3dd882734a8a3e9aabfd37176a411
parent8e6e47fe0ad80b32fbf81cb69774191adb69e862
Fix overwrite of getopt optind

Using 'optind' in getopt_long() shadows actual 'optind' being provided
by getopt, thus prevents any future options change from using optind.

See https://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html#index-getopt_005flong
i3lock.c