[gnome-control-center] privacy: Rename retval in get_privacy_policy_url()



commit 346f3609b7b35346a35758066a5ed7eb4420d10f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Aug 29 13:57:10 2016 +0200

    privacy: Rename retval in get_privacy_policy_url()
    
    It's a URL, not a name.

 panels/privacy/cc-privacy-panel.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c
index 89c1de8..ee4eb9e 100644
--- a/panels/privacy/cc-privacy-panel.c
+++ b/panels/privacy/cc-privacy-panel.c
@@ -122,9 +122,9 @@ static char *
 get_privacy_policy_url (void)
 {
   char *buffer;
-  char *name;
+  char *url;
 
-  name = NULL;
+  url = NULL;
 
   if (g_file_get_contents ("/etc/os-release", &buffer, NULL, NULL))
     {
@@ -139,24 +139,24 @@ get_privacy_policy_url (void)
 
        if (start != NULL && end != NULL)
          {
-           name = g_strndup (start, end - start);
+           url = g_strndup (start, end - start);
          }
 
        g_free (buffer);
     }
 
-  if (name && *name != '\0')
+  if (url && *url != '\0')
     {
       char *tmp;
-      tmp = g_shell_unquote (name, NULL);
-      g_free (name);
-      name = tmp;
+      tmp = g_shell_unquote (url, NULL);
+      g_free (url);
+      url = tmp;
     }
 
-  if (name == NULL)
-    name = g_strdup ("http://www.gnome.org/privacy-policy";);
+  if (url == NULL)
+    url = g_strdup ("http://www.gnome.org/privacy-policy";);
 
-  return name;
+  return url;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]