From 84c586f1f1d8bd102928f3ae95d1d1185a59de8f Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Wed, 19 Jan 2022 19:12:36 +0000 Subject: round of coverity identified issue fixes (and non-issues) git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@931 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_scan_linux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sg_scan_linux.c') diff --git a/src/sg_scan_linux.c b/src/sg_scan_linux.c index 7354ad4e..c04206a1 100644 --- a/src/sg_scan_linux.c +++ b/src/sg_scan_linux.c @@ -1,5 +1,5 @@ /* A utility program originally written for the Linux OS SCSI subsystem. - * Copyright (C) 1999 - 2018 D. Gilbert + * Copyright (C) 1999 - 2022 D. Gilbert * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) @@ -53,7 +53,7 @@ #include "sg_pr2serr.h" -static const char * version_str = "4.17 20180219"; +static const char * version_str = "4.18 20220118"; #define ME "sg_scan: " @@ -203,6 +203,7 @@ int main(int argc, char * argv[]) printf(ME "Out of memory\n"); return SG_LIB_CAT_OTHER; } + strcpy(fname, ""); for (k = 1, j = 0; k < argc; ++k) { cp = argv[k]; -- cgit v1.2.3