Update of /cvsroot/ufraw/ufraw
In directory vz-cvs-3.sog:/tmp/cvs-serv17805

Modified Files:
        ufraw_lensfun.cc ufraw_ufraw.c 
Log Message:
Fix some valgrind "uninitialized variable" warnings.


Index: ufraw_lensfun.cc
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_lensfun.cc,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- ufraw_lensfun.cc    9 Aug 2011 05:03:54 -0000       1.26
+++ ufraw_lensfun.cc    12 Aug 2011 04:24:10 -0000      1.27
@@ -669,7 +669,7 @@
 
 void Lensfun::SetLensInterpolation()
 {
-    char make[200], model[200];
+    char make[200] = "", model[200] = "";
     parse_maker_model((*this)[ufLensModel].StringValue(), make, sizeof(make),
                       model, sizeof(model));
     double crop_factor = 1.0;

Index: ufraw_ufraw.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_ufraw.c,v
retrieving revision 1.264
retrieving revision 1.265
diff -u -d -r1.264 -r1.265
--- ufraw_ufraw.c       7 Aug 2011 04:30:41 -0000       1.264
+++ ufraw_ufraw.c       12 Aug 2011 04:24:10 -0000      1.265
@@ -462,7 +462,7 @@
 #ifdef HAVE_LENSFUN
     // Do not reset lensfun settings while loading ID.
     UFBoolean reset = !uf->LoadingID;
-    if (conf != NULL && conf->ufobject != NULL) {
+    if (conf != NULL && conf->version > 0 && conf->ufobject != NULL) {
         UFObject *conf_lensfun_auto = ufgroup_element(conf->ufobject,
                                       ufLensfunAuto);
         // Do not reset lensfun settings from conf file.


------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
ufraw-cvs mailing list
ufraw-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to