The following commit has been merged in the master branch:
commit f9c5414ea39c07cbd6a1b580a6a5df1381de39b4
Author: Guillem Jover <[email protected]>
Date:   Sun Nov 7 23:03:54 2010 +0100

    u-a: Reduce scope of current pointer in main()

diff --git a/utils/update-alternatives.c b/utils/update-alternatives.c
index 3d81e55..e2c646a 100644
--- a/utils/update-alternatives.c
+++ b/utils/update-alternatives.c
@@ -2261,9 +2261,10 @@ main(int argc, char **argv)
                exit(0);
        } else if (strcmp(action, "get-selections") == 0) {
                struct alternative_map *am;
-               char *current;
 
                for (am = alt_map_obj; am && am->item; am = am->next) {
+                       char *current;
+
                        current = alternative_get_current(am->item);
                        printf("%-30s %-8s %s\n", am->key,
                               alternative_status_string(am->item->status),

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to