Permalink
Browse files

shveu_open: propagate error conditions

  • Loading branch information...
1 parent b45fafa commit 4f73d5c19039553a394cc06e42a22e3ad8ba845f @kfish committed Feb 16, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/libshveu/veu_colorspace.c
@@ -291,7 +291,12 @@ static void sh_veu_destroy(void)
int shveu_open(void)
{
- sh_veu_probe(0, 0);
+ int ret=0;
+
+ ret = sh_veu_probe(0, 0);
+ if (ret < 0)
+ return ret;
+
sh_veu_init();
return 0;

0 comments on commit 4f73d5c

Please sign in to comment.