diff mbox

infiniband-diags: ibqueryerrors fix null threshold_str

Message ID 20110720170411.9ae1fc90.weiny2@llnl.gov (mailing list archive)
State Accepted, archived
Delegated to: Ira Weiny
Headers show

Commit Message

Ira Weiny July 21, 2011, 12:04 a.m. UTC
When printing "(null)" was being printed if there was no threshold file

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
---
 src/ibqueryerrors.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/src/ibqueryerrors.c b/src/ibqueryerrors.c
index 1bba0e0..869316b 100644
--- a/src/ibqueryerrors.c
+++ b/src/ibqueryerrors.c
@@ -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)
 {