summaryrefslogtreecommitdiff
path: root/skinnopacity.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-04-10 17:15:16 +0200
committerlouis <louis.braun@gmx.de>2013-04-10 17:15:16 +0200
commit553d67045ed05184f98ee707b2b1fd2d38f45f60 (patch)
tree71c3bbb095142956815dc90406698f1e08c6a7bb /skinnopacity.c
parente269a87fc24964fbaac485d6a60f3c331ed321a6 (diff)
downloadskin-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.c12
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;
}