Author: akv
Date: 2009-11-16 23:52:21 +0100 (Mon, 16 Nov 2009)
New Revision: 2748

Modified:
   trunk/plugins/lensfun/lensfun.c
Log:
Fixing nullpointer.

Modified: trunk/plugins/lensfun/lensfun.c
===================================================================
--- trunk/plugins/lensfun/lensfun.c     2009-11-16 21:10:25 UTC (rev 2747)
+++ trunk/plugins/lensfun/lensfun.c     2009-11-16 22:52:21 UTC (rev 2748)
@@ -405,7 +405,7 @@
                        model = rs_lens_get_lensfun_model(lensfun->lens);
                        make = rs_lens_get_lensfun_make(lensfun->lens);
 
-                       lenses = lf_db_find_lenses_hd(lensfun->ldb, cameras[0], 
make, model, 0);
+                       lenses = lf_db_find_lenses_hd(lensfun->ldb, 
lensfun->selected_camera, make, model, 0);
                }
 
                if (!lenses)


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to