coverity: fixed unchecked return value from library

This commit is contained in:
Laxmikant Rashinkar
2014-07-20 13:14:09 -07:00
parent 023c0b5bc1
commit a990287c46
7 changed files with 88 additions and 23 deletions
+7 -1
View File
@@ -446,7 +446,13 @@ clipboard_send_file_data(int streamId, int lindex,
full_fn);
return 1;
}
g_file_seek(fd, nPositionLow);
if (g_file_seek(fd, nPositionLow) < 0)
{
log_message(LOG_LEVEL_ERROR, "clipboard_send_file_data: seek error "
"in file: %s\n", full_fn);
g_file_close(fd);
return 1;
}
make_stream(s);
init_stream(s, cbRequested + 64);
size = g_file_read(fd, s->data + 12, cbRequested);