Skip to contentSkip to conversation

infiniband-diags: ibqueryerrors fix null threshold_str

PATCH New Ira Weiny 1 participant 1 message Jul 21, 2011 InfiniBand

lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH 1/1 infiniband-diags: ibqueryerrors fix null threshold_str

When printing "(null)" was being printed if there was no threshold file

---
 src/ibqueryerrors.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/ibqueryerrors.c +1 -1
index 1bba0e0..869316b 100644
@@ -90,7 +90,7 @@ static char *threshold_file = DEF_THRES_FILE;
 
 /* define a "packet" with threshold values in it */
 uint8_t thresholds[1204] = { 0 };
-char * threshold_str = NULL;
+char * threshold_str = "";
 
 static void set_thres(char *name, uint32_t val)
 {
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html