[ofa-general] [PATCH] opensm/osm_subnet.c: clean_val() remove trailing quotation
Sasha Khapyorsky
sashak at voltaire.com
Sat Feb 7 01:43:24 PST 2009
Remove training quotation character from parsed string values.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/opensm/osm_subnet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index 2b3f463..bd52f76 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -794,7 +794,7 @@ static char *clean_val(char *val)
/* clean quotas */
if ((*val == '\"' && *p == '\"') || (*val == '\'' && *p == '\'')) {
val++;
- p--;
+ *p-- = '\0';
}
return val;
}
--
1.6.1.2.319.gbd9e
More information about the general
mailing list