kopia lustrzana https://gitlab.com/sane-project/backends
Avoid reading uninitialized memory.
rodzic
165e106361
commit
d4d1ed211d
|
@ -82,7 +82,7 @@ bin_w_string (Wire *w, void *v)
|
||||||
len = strlen (*s) + 1;
|
len = strlen (*s) + 1;
|
||||||
}
|
}
|
||||||
sanei_w_array (w, &len, v, w->codec.w_byte, 1);
|
sanei_w_array (w, &len, v, w->codec.w_byte, 1);
|
||||||
if (!len && w->direction == WIRE_DECODE)
|
if (w->direction == WIRE_DECODE && !len)
|
||||||
*s = 0;
|
*s = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue