]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(close_stdout_wrapper): Don't dereference NULL pointer.
authorJim Meyering <jim@meyering.net>
Thu, 25 May 2000 07:14:13 +0000 (07:14 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 25 May 2000 07:14:13 +0000 (07:14 +0000)
From Bob Proulx.

src/dd.c

index 9c535793db34d9dc8d61149e146aa6884b494d43..33367496a5e25116365a22765ec287fd8df35a75 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -1055,7 +1055,7 @@ static void (*closeout_func) (void) = close_stdout;
 static void
 close_stdout_wrapper (void)
 {
-  if (*closeout_func)
+  if (closeout_func)
     (*closeout_func) ();
 }