Skip to content

Commit

Permalink
Merge pull request #2 from britnex/patch-1
Browse files Browse the repository at this point in the history
fixes getopt endless loop on Raspberry Pi
  • Loading branch information
dsx724 authored Mar 29, 2019
2 parents 7983beb + 0e35946 commit a3ff1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console-qrcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const struct option long_options[] = {

int main(int argc, char **argv) {
int longindex;
char option;
int option;
while ((option = getopt_long(argc,argv,short_options,long_options, &longindex)) != -1){
switch (option){
case 'p':
Expand Down

0 comments on commit a3ff1e5

Please sign in to comment.