From 3304dfcbfe020cd21b6525fde8319e26c3f5b3a1 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 16 Mar 2021 13:31:56 -0400 Subject: [PATCH] don't output null pointers as strings with fmtlib in variable info list --- src/info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/info.cpp b/src/info.cpp index 27ed8c1c5b..fadf87292a 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -655,7 +655,7 @@ void Info::command(int narg, char **arg) if ((style[i] != LOOP) && (style[i] != ULOOP)) ndata = input->variable->num[i]; for (int j=0; j < ndata; ++j) - fmt::print(out," {}",data[i][j]); + if (data[i][j]) fmt::print(out," {}",data[i][j]); fputs("\n",out); } }