uninitialized variables
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
This commit is contained in:
parent
a48d9c228a
commit
cdfc4e6e33
|
@ -0,0 +1,30 @@
|
|||
--- glusterfs-coreutils-c155815/src/glfs-ls.c.orig 2018-03-20 07:31:33.552119109 -0400
|
||||
+++ glusterfs-coreutils-c155815/src/glfs-ls.c 2018-03-20 07:32:50.294119109 -0400
|
||||
@@ -432,7 +432,7 @@
|
||||
{
|
||||
char *pattern = NULL;
|
||||
char *real_path = NULL;
|
||||
- int ret;
|
||||
+ int ret = -1;
|
||||
struct stat statbuf;
|
||||
|
||||
/**
|
||||
@@ -459,7 +459,6 @@
|
||||
if (pattern && strchr (pattern, '*') == NULL) {
|
||||
if (glfs_stat (fs, path, &statbuf)) {
|
||||
error (0, errno, "failed to access %s", state->url);
|
||||
- ret = -1;
|
||||
goto out;
|
||||
}
|
||||
|
||||
--- glusterfs-coreutils-c155815/src/glfs-tail.c.orig 2018-03-20 07:33:02.133119109 -0400
|
||||
+++ glusterfs-coreutils-c155815/src/glfs-tail.c 2018-03-20 07:33:46.237119109 -0400
|
||||
@@ -567,7 +567,7 @@
|
||||
{
|
||||
int argc = ctx->argc;
|
||||
char **argv = ctx->argv;
|
||||
- int ret;
|
||||
+ int ret = -1;
|
||||
|
||||
state = init_state ();
|
||||
if (state == NULL) {
|
|
@ -4,7 +4,7 @@
|
|||
Summary: Core Utilities for the Gluster Distributed File System
|
||||
Name: glusterfs-coreutils
|
||||
Version: 0.2.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
License: GPLv3
|
||||
Group: System Environment/Base
|
||||
URL: https://github.com/gluster/glusterfs-coreutils
|
||||
|
@ -12,6 +12,7 @@ URL: https://github.com/gluster/glusterfs-coreutils
|
|||
# following command:
|
||||
# make dist
|
||||
Source0: %{name}-%{shortcommit0}.tar.gz
|
||||
Patch0001: 0001-uninitialized.patch
|
||||
|
||||
Provides: bundled(gnulib)
|
||||
|
||||
|
@ -28,6 +29,7 @@ stat, rm and tail that are implemented specifically using the GlusterFS API.
|
|||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{shortcommit0}
|
||||
%patch0001 -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
|
@ -42,6 +44,9 @@ make %{?_smp_mflags}
|
|||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 20 2018 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 0.2.0-7
|
||||
- uninitialized variables
|
||||
|
||||
* Mon Feb 19 2018 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 0.2.0-6
|
||||
- gcc in BuildRoot
|
||||
|
||||
|
|
Loading…
Reference in New Issue