From 27a4386c3fb0b4af7dfb9308126c2a9dc978cabb Mon Sep 17 00:00:00 2001 From: eatdirt Date: Thu, 20 Nov 2014 23:43:11 +0100 Subject: [PATCH] Fix segfault when appending an argument not recknownized --- wmcpufreq/wmcpufreq/wmcpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wmcpufreq/wmcpufreq/wmcpufreq.c b/wmcpufreq/wmcpufreq/wmcpufreq.c index f1bad12..e63ae95 100644 --- a/wmcpufreq/wmcpufreq/wmcpufreq.c +++ b/wmcpufreq/wmcpufreq/wmcpufreq.c @@ -86,6 +86,8 @@ int main(int argc, char *argv[]) strcpy(prg,argv[i+1]); break; } + printf("only -v and -exe supported \n"); + exit(0); } } /* get driver name (guess all cpu have the same driver) */ -- 2.11.4.GIT