Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Mar 12, 2014
1 parent f7863cd commit 05fbc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-dyn-config.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 05fbc6d

Please sign in to comment.