diff options
author | louis <louis.braun@gmx.de> | 2013-04-10 17:15:16 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-04-10 17:15:16 +0200 |
commit | 553d67045ed05184f98ee707b2b1fd2d38f45f60 (patch) | |
tree | 71c3bbb095142956815dc90406698f1e08c6a7bb /skinnopacity.c | |
parent | e269a87fc24964fbaac485d6a60f3c331ed321a6 (diff) | |
download | skin-nopacity-553d67045ed05184f98ee707b2b1fd2d38f45f60.tar.gz skin-nopacity-553d67045ed05184f98ee707b2b1fd2d38f45f60.tar.bz2 |
check for Slash at end of startup path parameters
Diffstat (limited to 'skinnopacity.c')
-rw-r--r-- | skinnopacity.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/skinnopacity.c b/skinnopacity.c index f24b9a4..3085489 100644 --- a/skinnopacity.c +++ b/skinnopacity.c @@ -73,26 +73,20 @@ bool cPluginNopacity::ProcessArgs(int argc, char *argv[]) }; int c; - cString *path = NULL; while ((c = getopt_long(argc, argv, "e:l:i:", long_options, NULL)) != -1) { switch (c) { case 'l': - path = new cString(optarg); - config.SetLogoPath(*path); + config.SetLogoPath(cString(optarg)); break; case 'e': - path = new cString(optarg); - config.SetEpgImagePath(*path); + config.SetEpgImagePath(cString(optarg)); break; case 'i': - path = new cString(optarg); - config.SetIconPath(*path); + config.SetIconPath(cString(optarg)); break; default: return false; } - if (path) - delete path; } return true; } |