Skip to content

Commit

Permalink
sample: fix compiler warning
Browse files Browse the repository at this point in the history
/usr/include/x86_64-linux-gnu/bits/stdio2.h:86:10: warning: ‘value’ may be used uninitialized [-Wmaybe-uninitialized]
   86 |   return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      |          ^
sample.c: In function ‘main’:
sample.c:45:13: note: ‘value’ was declared here
   45 |         int value, ret = -1;
      |             ^
  • Loading branch information
LudovicRousseau committed Feb 12, 2023
1 parent deebf6f commit 70f6e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libPCSCv2part10/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main(void)
LONG rv;
SCARDCONTEXT hContext;
SCARDHANDLE hCard;
int value, ret = -1;
int value = -1, ret = -1;
DWORD dwReaders, dwPref;
char *mszReaders;

Expand Down

0 comments on commit 70f6e09

Please sign in to comment.