summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libxt_osf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/libxt_osf.c b/extensions/libxt_osf.c
index 4e2139a5..52dba474 100644
--- a/extensions/libxt_osf.c
+++ b/extensions/libxt_osf.c
@@ -92,7 +92,10 @@ static void osf_save(const void *ip, const struct xt_entry_match *match)
{
const struct xt_osf_info *info = (const struct xt_osf_info*) match->data;
- printf(" --genre %s%s", (info->flags & XT_OSF_INVERT) ? "! ": "", info->genre);
+ if (info->flags & XT_OSF_INVERT)
+ printf(" !");
+
+ printf(" --genre %s", info->genre);
if (info->flags & XT_OSF_TTL)
printf(" --ttl %u", info->ttl);
if (info->flags & XT_OSF_LOG)