[grilo-plugins] dleyna: Fix grl_dleyna_util_uri_is_localhost() usage
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] dleyna: Fix grl_dleyna_util_uri_is_localhost() usage
- Date: Wed, 10 Jun 2015 09:39:15 +0000 (UTC)
commit f94046c301fe8c084d7410433ddd7f8c8d5ddef2
Author: Bastien Nocera <hadess hadess net>
Date: Tue May 26 12:55:41 2015 +0200
dleyna: Fix grl_dleyna_util_uri_is_localhost() usage
From coverity:
grilo-plugins-0.2.14/src/dleyna/grl-dleyna-source.c:1207: swapped_arguments: The positions of arguments
in the call to "grl_dleyna_util_uri_is_localhost" do not match the ordering of the parameters: * "&localhost"
is passed to "localuser" * "&localuser" is passed to "localhost"
https://bugzilla.gnome.org/show_bug.cgi?id=749889
src/dleyna/grl-dleyna-source.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dleyna/grl-dleyna-source.c b/src/dleyna/grl-dleyna-source.c
index 10c35c9..cf8b649 100644
--- a/src/dleyna/grl-dleyna-source.c
+++ b/src/dleyna/grl-dleyna-source.c
@@ -1204,7 +1204,7 @@ grl_dleyna_source_new (GrlDleynaServer *server)
}
location = grl_dleyna_media_device_get_location (device);
- grl_dleyna_util_uri_is_localhost (location, &localhost, &localuser);
+ grl_dleyna_util_uri_is_localhost (location, &localuser, &localhost);
i = 0;
if (localhost) {
tags[i++] = "localhost";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]