rtcwake: do not duplicate argument strings

This is not necessary and prevents memory leaks.

Reported-by: Marek Otahal <markotahal@gmail.com>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
This commit is contained in:
Davidlohr Bueso 2011-02-27 14:45:01 -03:00 committed by Karel Zak
parent 4b5f7895b4
commit c1196d3ab7
1 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ int main(int argc, char **argv)
break;
case 'd':
devname = strdup(optarg);
devname = optarg;
break;
case 'l':
@ -423,7 +423,7 @@ int main(int argc, char **argv)
|| strcmp(optarg, "disable") == 0
|| strcmp(optarg, "show") == 0
) {
suspend = strdup(optarg);
suspend = optarg;
break;
}