OSDN Git Service

Actually /set/ the values we're using to the results of parsing the number.
authorPeter Jones <pjones@redhat.com>
Tue, 21 Oct 2014 20:02:13 +0000 (16:02 -0400)
committerPeter Jones <pjones@redhat.com>
Tue, 21 Oct 2014 20:08:18 +0000 (16:08 -0400)
This should fix https://github.com/vathpela/efibootmgr/issues/18

Signed-off-by: Peter Jones <pjones@redhat.com>
src/efibootmgr/efibootmgr.c

index 546b55c..85dc73e 100644 (file)
@@ -1086,7 +1086,7 @@ parse_opts(int argc, char **argv)
                                exit(1);
                        }
 
-                       opts.bootnum = num;
+                       opts.bootnum = result;
                        break;
                }
                case 'c':
@@ -1140,7 +1140,7 @@ parse_opts(int argc, char **argv)
                                exit(1);
                        }
 
-                       opts.acpi_hid = num;
+                       opts.acpi_hid = result;
                        break;
                }
                case 'i':
@@ -1229,7 +1229,7 @@ parse_opts(int argc, char **argv)
                                exit(1);
                        }
 
-                       opts.acpi_uid = num;
+                       opts.acpi_uid = result;
                        break;
                }
                case 'v':