When non-root uses dm_check_version() it's been printing some unit
values from stack. So always init those vars.
Version 1.02.91 -
====================================
+ Don't print uninitialized stack bytes when non-root uses dm_check_version().
Fix selection criteria to not match reserved values when using >, <, >=, <.
Add DM_LIST_HEAD_INIT macro to libdevmapper.h
Fix dm_is_dm_major to not issue error about missing /proc lines for dm module.
*/
int dm_check_version(void)
{
- char libversion[64], dmversion[64];
+ char libversion[64] = "", dmversion[64] = "";
const char *compat = "";
if (_version_checked)