summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2023-01-04 12:06:32 -0500
committerSteve Dickson <steved@redhat.com>2023-01-10 09:48:36 -0500
commitfa12f380fd3c2aa2a6330f1a01100ea9a03b1521 (patch)
tree9ddffdea8637478b3bc411d7facc6306ee9dcd27
parent631c6aa34aae7328dc297210fd2de2d5364c697f (diff)
downloadnfs-utils-fa12f380fd3c2aa2a6330f1a01100ea9a03b1521.tar.gz
Covscan Scan: Fixed a couple CLANG_WARNINGs
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2151971 Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--tools/nfsrahead/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nfsrahead/main.c b/tools/nfsrahead/main.c
index c83c6f7..8a11cf1 100644
--- a/tools/nfsrahead/main.c
+++ b/tools/nfsrahead/main.c
@@ -167,7 +167,7 @@ int main(int argc, char **argv)
if ((ret = get_device_info(argv[optind], &device)) == 0)
break;
- if (ret != 0) {
+ if (ret != 0 || device.fstype == NULL) {
xlog(D_GENERAL, "unable to find device %s\n", argv[optind]);
goto out;
}