# HG changeset patch
# User Edouard Gomez <[email protected]>
# Date 1279575649 -7200
# Node ID 41909cee1c04976ab72580f2fccfa8bf7c66d78d
# Parent 8288e47ea09b0e56a75bfddb1cc4de32fe6bc101
librawstudio: fix uninitialized var case in raw_get_rational if raw_get_uint
fails.
This happens to also fix a build failure when using ./configure CFLAGS='-O3
-g3'.
diff --git a/librawstudio/rs-rawfile.c b/librawstudio/rs-rawfile.c
--- a/librawstudio/rs-rawfile.c
+++ b/librawstudio/rs-rawfile.c
@@ -149,8 +149,10 @@
return(FALSE);
guint counter, divisor;
- raw_get_uint(rawfile, pos, &counter);
- raw_get_uint(rawfile, pos+4, &divisor);
+ if (FALSE == raw_get_uint(rawfile, pos, &counter))
+ return(FALSE);
+ if (FALSE == raw_get_uint(rawfile, pos+4, &divisor))
+ return(FALSE);
if (divisor == 0)
return(FALSE);
_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev