From 05fbc6d1923ccfbe5e4f6dd5760552fbdfd6f010 Mon Sep 17 00:00:00 2001 From: Philippe De Swert Date: Wed, 12 Mar 2014 12:04:55 +0200 Subject: [PATCH] [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: Philippe De Swert --- src/usb_moded-dyn-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb_moded-dyn-config.c b/src/usb_moded-dyn-config.c index 2273862..e731923 100644 --- a/src/usb_moded-dyn-config.c +++ b/src/usb_moded-dyn-config.c @@ -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); }