eb340e9e16
Resolves: rhbz#2004420
27 lines
671 B
Diff
27 lines
671 B
Diff
From ae210cb59accb6ee03488b6ec14fb67aca22660f Mon Sep 17 00:00:00 2001
|
|
From: Steve Grubb <sgrubb@redhat.com>
|
|
Date: Sat, 21 Aug 2021 10:20:11 -0400
|
|
Subject: [PATCH 4/4] When interpreting, if val is NULL return an empty string
|
|
|
|
---
|
|
auparse/interpret.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/auparse/interpret.c b/auparse/interpret.c
|
|
index 177ab82..63829aa 100644
|
|
--- a/auparse/interpret.c
|
|
+++ b/auparse/interpret.c
|
|
@@ -840,6 +840,9 @@ static char *print_escaped(const char *val)
|
|
{
|
|
char *out;
|
|
|
|
+ if (val == NULL)
|
|
+ return strdup(" ");
|
|
+
|
|
if (*val == '"') {
|
|
char *term;
|
|
val++;
|
|
--
|
|
2.33.1
|
|
|