forked from pool/alsa-utils
Takashi Iwai
a8785cdb8c
- Backport upstream fixes: a few speaker-test fixes, minor alsactl fixes and a revert of a wrong fix for aplay. 0007-speaker-test-Add-missing-draining-at-the-end.patch 0008-alsactl-Fix-the-file-locking-routines-for-the-state-.patch 0009-alsactl-aded-missing-monitor-prototype.patch 0010-speaker-text-fix-simple-signess-assignment-warning.patch 0011-monitor-fix-clang-warning-Declared-variable-length-a.patch 0012-alsactl-coverity-missing_va_end-va_end-was-not-calle.patch 0013-Revert-aplay-fix-pcm_read-return-value.patch OBS-URL: https://build.opensuse.org/request/show/257836 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=108
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From 89a4f490bd974e454d82942100f241bb1a2270f3 Mon Sep 17 00:00:00 2001
|
|
From: Jaroslav Kysela <perex@perex.cz>
|
|
Date: Wed, 24 Sep 2014 10:52:17 +0200
|
|
Subject: [PATCH] =?UTF-8?q?alsactl:=20coverity=20-=20missing=5Fva=5Fend=20?=
|
|
=?UTF-8?q?=E2=80=93=20va=5Fend=20was=20not=20called=20for=20"ap"?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
alsactl/utils.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/alsactl/utils.c b/alsactl/utils.c
|
|
index b5d183cb437c..304df7cb504a 100644
|
|
--- a/alsactl/utils.c
|
|
+++ b/alsactl/utils.c
|
|
@@ -157,8 +157,8 @@ void cerror_(const char *fcn, long line, int cond, const char *fmt, ...)
|
|
fprintf(stderr, "%s: %s:%ld: ", command, fcn, line);
|
|
vfprintf(stderr, fmt, ap);
|
|
putc('\n', stderr);
|
|
- va_end(ap);
|
|
}
|
|
+ va_end(ap);
|
|
}
|
|
|
|
void dbg_(const char *fcn, long line, const char *fmt, ...)
|
|
@@ -174,6 +174,6 @@ void dbg_(const char *fcn, long line, const char *fmt, ...)
|
|
fprintf(stderr, "%s: %s:%ld: ", command, fcn, line);
|
|
vfprintf(stderr, fmt, ap);
|
|
putc('\n', stderr);
|
|
- va_end(ap);
|
|
}
|
|
+ va_end(ap);
|
|
}
|
|
--
|
|
2.1.2
|
|
|