diff options
Diffstat (limited to '')
-rw-r--r-- | src/opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -239,9 +239,9 @@ static int perf_opt_long_parse(char* optarg) char* arg; if ((arg = strchr(optarg, '='))) { + optlen = arg - optarg; arg++; - optlen = strlen(arg); - if (optlen < 1) { + if (optlen < 1 || !strlen(arg)) { return -1; } } else { |