[dialog-bi-import.c] insert "" in ListStore when regex match fails

because the liststore data isn't being null-checked. It's easier to
insert "" when the regex match fails thereby allowing strlen
e.g. strlen(date_posted) to return 0 instead of segfaulting.
This commit is contained in:
Christopher Lam
2024-04-01 10:09:20 +08:00
parent ac915f34f7
commit d0b170fd7c

View File

@@ -68,7 +68,7 @@
g_strstrip( temp ); \
gtk_list_store_set (store, &iter, column, temp, -1); \
g_free (temp); \
}
} else gtk_list_store_set (store, &iter, column, "", -1);
static QofLogModule log_module = G_LOG_DOMAIN; //G_LOG_BUSINESS;
static char * un_escape(char *str);