From e81fe91c2b318e704e335f5f97dfe371cb96d0e8 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 f1dc96645b..cf56f3c1d4 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); } }