Author: akv
Date: 2011-01-02 03:26:57 +0100 (Sun, 02 Jan 2011)
New Revision: 3774

Modified:
   trunk/librawstudio/rs-lens-db-editor.c
Log:
Don't try to sort an empty array.

Modified: trunk/librawstudio/rs-lens-db-editor.c
===================================================================
--- trunk/librawstudio/rs-lens-db-editor.c      2011-01-02 00:52:07 UTC (rev 
3773)
+++ trunk/librawstudio/rs-lens-db-editor.c      2011-01-02 02:26:57 UTC (rev 
3774)
@@ -67,6 +67,9 @@
 
 const lfLens **lf_lens_sort_by_model(const lfLens *const *array)
 {
+       if (array == NULL)
+               return NULL;
+
        gint x = 0;
        GPtrArray *temp = g_ptr_array_new();
 


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

Reply via email to