kopia lustrzana https://gitlab.com/sane-project/backends
uninitialized: set *status on all returns out of e2_ssend()
rodzic
563afbe0fa
commit
0400e23d30
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue