Commits

Greg Ward  committed 7623121

If we're going to ignore errors from strtol(), do it right.

  • Participants
  • Parent commits 37ee739

Comments (0)

Files changed (1)

File src/vcprompt.c

 void parse_args(int argc, char** argv, options_t* options)
 {
     int opt;
-    char* timeoutstring;
     while ((opt = getopt(argc, argv, "hf:dt:")) != -1) {
         switch (opt) {
             case 'f':
                 options->debug = 1;
                 break;
             case 't':
-                options->timeout = strtol(optarg, &timeoutstring, 10);
+                options->timeout = strtol(optarg, NULL, 10);
                 break;
             case 'h':
             default: