summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_list.c')
-rw-r--r--src/lib/eina/eina_list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eina/eina_list.c b/src/lib/eina/eina_list.c
index 5c8b1f8c41..b4707c7b36 100644
--- a/src/lib/eina/eina_list.c
+++ b/src/lib/eina/eina_list.c
@@ -1111,6 +1111,9 @@ eina_list_shuffle(Eina_List *list, Eina_Random_Cb func)
1111 n = accounting->count; 1111 n = accounting->count;
1112 shuffled_list = shuffled_last = NULL; 1112 shuffled_list = shuffled_last = NULL;
1113 1113
1114 if (n == 0)
1115 return NULL;
1116
1114 if (n == 1) 1117 if (n == 1)
1115 return list; 1118 return list;
1116 1119