aboutsummaryrefslogtreecommitdiff
path: root/form/fld_attr.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 12:37:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 12:37:49 +0000
commitc5a1e08b52b2f6c05e0116d46277904b711b6bdb (patch)
treea6ad7350d1b1100356ca59616d22c51dd29743eb /form/fld_attr.c
parent24fa7a5107c5b75d1c197accf0305be64bc72882 (diff)
Diffstat (limited to 'form/fld_attr.c')
-rw-r--r--form/fld_attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/form/fld_attr.c b/form/fld_attr.c
index 4ce6b1c52d60..7827d1c4931d 100644
--- a/form/fld_attr.c
+++ b/form/fld_attr.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2020 Thomas E. Dickey *
+ * Copyright 2020,2024 Thomas E. Dickey *
* Copyright 1998-2010,2016 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -33,7 +33,7 @@
#include "form.priv.h"
-MODULE_ID("$Id: fld_attr.c,v 1.15 2020/12/11 22:05:24 tom Exp $")
+MODULE_ID("$Id: fld_attr.c,v 1.16 2024/12/07 23:01:42 tom Exp $")
/*----------------------------------------------------------------------------
Field-Attribute manipulation routines
@@ -47,7 +47,7 @@ FORM_IMPEXP int NCURSES_API set_field_ ## name (FIELD * field, chtype attr)\
if ( attr==A_NORMAL || ((attr & A_ATTRIBUTES)==attr) )\
{\
Normalize_Field( field );\
- if (field != 0) \
+ if (field != NULL) \
{ \
if ((field -> name) != attr)\
{\