Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp server: fix wrong fd condition (coverity)
  • Loading branch information
perexg committed Oct 3, 2014
1 parent fc915fc commit 3625490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/htsp_server.c
Expand Up @@ -2006,7 +2006,7 @@ htsp_method_file_open(htsp_connection_t *htsp, htsmsg_t *in)

} else if ((s2 = tvh_strbegins(str, "imagecache/")) != NULL) {
int fd = imagecache_open(atoi(s2));
if (fd <= 0)
if (fd < 0)
return htsp_error("failed to open image");
return htsp_file_open(htsp, str, fd);

Expand Down

0 comments on commit 3625490

Please sign in to comment.