10130 smatch fixes for usr/src/cmd/fm
@@ -20,10 +20,15 @@ */ /* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. */ + +/* + * Copyright (c) 2018, Joyent, Inc. + */ + #include <stdio.h> #include <stdlib.h> #include <string.h> #include <alloca.h> #include <errno.h>
@@ -809,11 +814,11 @@ case 'R': nhdl->nh_rootdir = strdup(optarg); break; default: free(nhdl); - return (usage(nhdl->nh_pname)); + return (usage(argv[0])); } } } /*