From d8317a730d1614263309e3764ec885e9dfd1a009 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 29 Jun 2024 02:28:43 -0400 Subject: [PATCH] Fix `die` that should be `return undef` I got ahead of myself -- I intend to replace `return undef` with `die` in a future commit, and somehow this one jumped the gun. This fixes a bug introduced in commit eab72ef6d7044ac7d638d0ab071570d2618db3aa --- ddclient.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index 2cd0162..2bc470d 100755 --- a/ddclient.in +++ b/ddclient.in @@ -2565,7 +2565,7 @@ sub check_value { } elsif (!defined($value) && $required) { # None of the types have 'undef' as a valid value, so check definedness once here for # convenience. - die("$type is required\n"); + return undef; } elsif ($type eq T_DELAY) { $value = interval($value);