summaryrefslogtreecommitdiff
path: root/ncurses/base/lib_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncurses/base/lib_flash.c')
-rw-r--r--ncurses/base/lib_flash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ncurses/base/lib_flash.c b/ncurses/base/lib_flash.c
index 975d5f5678f8..2bbfc5231b2c 100644
--- a/ncurses/base/lib_flash.c
+++ b/ncurses/base/lib_flash.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2020 Thomas E. Dickey *
+ * Copyright 2020-2024,2025 Thomas E. Dickey *
* Copyright 1998-2013,2014 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -47,7 +47,7 @@
#define CUR SP_TERMTYPE
#endif
-MODULE_ID("$Id: lib_flash.c,v 1.15 2020/02/02 23:34:34 tom Exp $")
+MODULE_ID("$Id: lib_flash.c,v 1.17 2025/12/27 12:41:23 tom Exp $")
/*
* flash()
@@ -63,8 +63,8 @@ NCURSES_SP_NAME(flash) (NCURSES_SP_DCL0)
int res = ERR;
T((T_CALLED("flash(%p)"), (void *) SP_PARM));
-#ifdef USE_TERM_DRIVER
- if (SP_PARM != 0)
+#if USE_TERM_DRIVER
+ if (SP_PARM != NULL)
res = CallDriver_1(SP_PARM, td_doBeepOrFlash, FALSE);
#else
if (HasTerminal(SP_PARM)) {