Merge branch 'epson2-uninitialized' into 'master'

epson2: fix up uninitialized variables

See merge request sane-project/backends!636
release-1.1.x
Wolfram Sang 2021-09-18 18:38:12 +00:00
commit a3558af0fc
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -77,7 +77,8 @@ e2_send(Epson_Scanner * s, void *buf, size_t buf_size, size_t reply_len,
if (reply_len == 0) {
DBG(0,
"Cannot send this command to a networked scanner\n");
return SANE_STATUS_INVAL;
*status = SANE_STATUS_INVAL;
return 0; /* nothing actually sent */
}
return sanei_epson_net_write(s, 0x2000, buf, buf_size,
reply_len, status);