]> git.pld-linux.org Git - packages/gdisk.git/blob - gptfdisk-1.0.9-popt_segv.patch
rel 2; uuid and segv fixees from gentoo
[packages/gdisk.git] / gptfdisk-1.0.9-popt_segv.patch
1 --- a/gptcl.cc
2 +++ b/gptcl.cc
3 @@ -156,9 +156,10 @@
4  
5     // Assume first non-option argument is the device filename....
6     device = (char*) poptGetArg(poptCon);
7 -   poptResetContext(poptCon);
8  
9     if (device != NULL) {
10 +      device = strdup(device);
11 +      poptResetContext(poptCon);
12        JustLooking(); // reset as necessary
13        BeQuiet(); // Tell called functions to be less verbose & interactive
14        if (LoadPartitions((string) device)) {
15 @@ -498,6 +499,7 @@
16           cerr << "Error encountered; not saving changes.\n";
17           retval = 4;
18        } // if
19 +      free(device);
20     } // if (device != NULL)
21     poptFreeContext(poptCon);
22     return retval;
This page took 0.062384 seconds and 3 git commands to generate.