Author: abrander
Date: 2010-01-14 10:54:17 +0100 (Thu, 14 Jan 2010)
New Revision: 2986

Modified:
   branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c
Log:
Fixed a NULL-dereference in rs_dcp_factory_get_compatible().

Modified: branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c   2010-01-14 
09:19:33 UTC (rev 2985)
+++ branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c   2010-01-14 
09:54:17 UTC (rev 2986)
@@ -92,7 +92,7 @@
        {
                RSDcpFile *dcp = RS_DCP_FILE(node->data);
 
-               if (g_str_equal(model, rs_dcp_file_get_model(dcp)))
+               if (model && g_str_equal(model, rs_dcp_file_get_model(dcp)))
                        matches = g_list_prepend(matches, dcp);
        }
 


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

Reply via email to