Print this page
10106 libreparse needs smatch fixes

@@ -22,10 +22,14 @@
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <strings.h>
 #include <string.h>

@@ -272,11 +276,11 @@
         /*
          * Protocols may call this framework during _fini
          */
         for (p = rp_proto_list; p != NULL; p = p->plugin_next) {
                 if (p->plugin_ops->rpo_fini)
-                        p->plugin_ops->rpo_fini();
+                        (void) p->plugin_ops->rpo_fini();
         }
         while ((p = rp_proto_list) != NULL) {
                 rp_proto_list = p->plugin_next;
                 if (p->plugin_handle != NULL)
                         (void) dlclose(p->plugin_handle);