Commit 14f214de authored by Philip Warner's avatar Philip Warner

Minor buglet in dumping functions onlt

parent 25a26a7a
...@@ -132,9 +132,9 @@ int main(int argc, char **argv) ...@@ -132,9 +132,9 @@ int main(int argc, char **argv)
progname = *argv; progname = *argv;
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
while ((c = getopt_long(argc, argv, "acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx", cmdopts, NULL)) != EOF) while ((c = getopt_long(argc, argv, "acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx", cmdopts, NULL)) != EOF)
#else #else
while ((c = getopt(argc, argv, "acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx")) != -1) while ((c = getopt(argc, argv, "acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx")) != -1)
#endif #endif
{ {
switch (c) switch (c)
...@@ -192,7 +192,7 @@ int main(int argc, char **argv) ...@@ -192,7 +192,7 @@ int main(int argc, char **argv)
case 'P': /* Function */ case 'P': /* Function */
opts->selTypes = 1; opts->selTypes = 1;
opts->selFunction = 1; opts->selFunction = 1;
opts->functionNames = _cleanupName(optarg); opts->functionNames = optarg ? strdup(optarg) : NULL;
break; break;
case 'I': /* Index */ case 'I': /* Index */
opts->selTypes = 1; opts->selTypes = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment