aboutsummaryrefslogtreecommitdiffstats
path: root/ui/text_import.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/text_import.c')
-rw-r--r--ui/text_import.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/text_import.c b/ui/text_import.c
index d7f4b2dcac..f320eb5e42 100644
--- a/ui/text_import.c
+++ b/ui/text_import.c
@@ -566,6 +566,10 @@ append_to_preamble(char *str)
/* Add a blank separator between the previous token and this token. */
packet_preamble[packet_preamble_len++] = ' ';
}
+ if(str == NULL){
+ fprintf(stderr, "FATAL ERROR: str is NULL\n");
+ exit(1);
+ }
toklen = strlen(str);
if (toklen != 0) {
if (packet_preamble_len + toklen > PACKET_PREAMBLE_MAX_LEN)