Print this page
10136 smatch fix for policykit

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/policykit/polkit-is-privileged.c
          +++ new/usr/src/cmd/policykit/polkit-is-privileged.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15   15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16   16   * GNU General Public License for more details.
  17   17   *
  18   18   * You should have received a copy of the GNU General Public License
  19   19   * along with this program; if not, write to the Free Software
  20   20   * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  21   21   *
  22   22   **************************************************************************/
  23   23  
       24 +/*
       25 + * Copyright (c) 2018, Joyent, Inc.
       26 + */
  24   27  
  25   28  #ifdef HAVE_CONFIG_H
  26   29  #  include <config.h>
  27   30  #endif
  28   31  
  29   32  #include <stdio.h>
  30   33  #include <stdlib.h>
  31   34  #include <getopt.h>
  32   35  #include <dbus/dbus.h>
  33   36  
↓ open down ↓ 158 lines elided ↑ open up ↑
 192  195                  goto out;
 193  196          }
 194  197  
 195  198          if (is_verbose) {
 196  199                  printf ("result %d\n", result);
 197  200                  printf ("is_allowed %d\n", is_allowed);
 198  201          }
 199  202  
 200  203  out:
 201  204          if (ctx != NULL)
 202      -                libpolkit_free_context (ctx);
      205 +                (void) libpolkit_free_context (ctx);
 203  206  
 204  207          return rc;
 205  208  }
 206  209  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX