summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2006-12-05 01:22:44 +0000
committerAnas Nashif <nashif@intel.com>2006-12-05 01:22:44 +0000
commit06ab4a43f18dddd0050d5cd865d08cc4f4cd4f9d (patch)
tree375c9bb477c96036db9d3582a9262995226f665f /src
parent4a4abecf503a6a52b8c467db09ee0fad1f975902 (diff)
downloadwsmancli-06ab4a43f18dddd0050d5cd865d08cc4f4cd4f9d.tar.gz
wsmancli-06ab4a43f18dddd0050d5cd865d08cc4f4cd4f9d.tar.xz
wsmancli-06ab4a43f18dddd0050d5cd865d08cc4f4cd4f9d.zip
check for empty enum context
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wsman.c b/src/wsman.c
index b7ced16..e6c0456 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -313,7 +313,8 @@ int main(int argc, char** argv)
if (!wsman_options_get_step_request())
{
- while (enumContext !=NULL) {
+ while (enumContext !=NULL && enumContext[0] != 0 ) {
+
doc = wsenum_pull(cl, resource_uri, enumContext, options);
if (wsman_get_client_response_code(cl) != 200 &&