summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2007-05-29 14:00:09 +0000
committerAnas Nashif <nashif@intel.com>2007-05-29 14:00:09 +0000
commit591577df39c1e55596cd592fe9a973a24666af74 (patch)
tree44d3344b2f66ef55b9b14592041c96afb62c818f /src
parent8a53282017626a2b9461554ef9bb8671ad87d968 (diff)
downloadwsmancli-591577df39c1e55596cd592fe9a973a24666af74.tar.gz
wsmancli-591577df39c1e55596cd592fe9a973a24666af74.tar.xz
wsmancli-591577df39c1e55596cd592fe9a973a24666af74.zip
fixed null resource uri
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/wsman.c b/src/wsman.c
index 9ce1c8f..93a7369 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -103,7 +103,7 @@ static unsigned long max_envelope_size = 0;
static char *_action = NULL;
static char *config_file = NULL;
static char *output_file = NULL;
-static char *resource_uri = NULL;
+static char *resource_uri_opt = NULL;
static char *invoke_method = NULL;
static char **properties = NULL;
@@ -281,7 +281,7 @@ char wsman_parse_options(int argc, char **argv)
if (argc > 2) {
_action = argv[1];
- resource_uri = argv[2];
+ resource_uri_opt = argv[2];
} else {
if (argv[1] && (strcmp(argv[1], "identify") == 0 ||
strcmp(argv[1], "test") == 0)) {
@@ -436,8 +436,6 @@ int main(int argc, char **argv)
*resource_uri_with_selectors;
char *resource_uri = NULL;
-
-
filename = (char *) config_file;
if (filename) {
ini = iniparser_load(filename);
@@ -502,7 +500,7 @@ int main(int argc, char **argv)
/*
* Setup Resource URI and Selectors
*/
- resource_uri_with_selectors = resource_uri;
+ resource_uri_with_selectors = resource_uri_opt;
if (resource_uri_with_selectors &&
strcmp(resource_uri_with_selectors,CIM_ALL_AVAILABLE_CLASSES) != 0) {
wsmc_set_options_from_uri(resource_uri_with_selectors,