Commit 1ee50b72 by Celine Mercier

Fixed a bug when creating a column and checking the comments string if

it was NULL
parent 720bb65b
......@@ -1149,7 +1149,7 @@ OBIDMS_column_p obi_create_column(OBIDMS_p dms,
strncpy(header->name, column_name, OBIDMS_COLUMN_MAX_NAME);
// Comments must be a json string, even empty
if ((strcmp(comments, "") == 0) || (comments == NULL))
if ((comments == NULL) || (strcmp(comments, "") == 0))
comments_ok = obi_column_write_comments(new_column, "{}");
else
comments_ok = obi_column_write_comments(new_column, comments);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment