Commit 05fbc6d1 authored by Philippe De Swert's avatar Philippe De Swert

[usb-moded] Correctly return the modelist start after sorting

The sorting patch did sort the list, but the start pointer returned was not
saved, this caused modes to go missing in case they did not get read in
in an alphabetical order.
Signed-off-by: default avatarPhilippe De Swert <philippe.deswert@jollamobile.com>
parent f7863cd7
......@@ -102,7 +102,7 @@ GList *read_mode_list(int diag)
else
log_debug("Mode confdir open failed or file is incomplete/invalid.\n");
g_list_sort (modelist, compare_modes);
modelist = g_list_sort (modelist, compare_modes);
return(modelist);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment