jsteube
|
9fe51563b1
|
Fix compiler warnings like this detected by MinGW GCC 10 or later:
```
src/modules/module_29543.c: In function ‘module_hash_encode’:
src/modules/module_29543.c:382:18: warning: ‘key_size’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
382 | int line_len = snprintf (line_buf, line_size,
"%s%s$%u$%u$%s$%s$%s",
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
383 | SIGNATURE_LUKS,
| ~~~~~~~~~~~~~~~
384 | cipher_mode,
| ~~~~~~~~~~~~
385 | key_size,
| ~~~~~~~~~
386 | iterations,
| ~~~~~~~~~~~
387 | salt_buf,
| ~~~~~~~~~
388 | af_buf,
| ~~~~~~~
389 | ct_buf);
| ~~~~~~~
```
Fix is not ideal but is better than uninitialized variables.
|
2022-07-13 06:49:27 +00:00 |
|