92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
13 lines
399 B
Diff
13 lines
399 B
Diff
diff --git a/gptcl.cc b/gptcl.cc
|
|
index 34c9421..0d578eb 100644
|
|
--- a/gptcl.cc
|
|
+++ b/gptcl.cc
|
|
@@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
|
|
} // while
|
|
|
|
// Assume first non-option argument is the device filename....
|
|
- device = (char*) poptGetArg(poptCon);
|
|
+ device = strdup((char*) poptGetArg(poptCon));
|
|
poptResetContext(poptCon);
|
|
|
|
if (device != NULL) {
|