]> git.pld-linux.org Git - packages/systemd.git/blobdiff - target-pld.patch
- x32 buildfix patch from debian
[packages/systemd.git] / target-pld.patch
index f13c46fd398e78c31f33c5165549afa4fa7aba6c..e90a617ff1607c295526051015e6d48a3c30f33f 100644 (file)
@@ -16,7 +16,7 @@
  
 +int read_etc_hostname_distro(const char *path, char **ret) {
 +        int r;
-+        char *p;
++        char *p = NULL;
 +        r = parse_env_file(NULL, "/etc/sysconfig/network", NEWLINE, "HOSTNAME", &p, NULL);
 +        if (r < 0)
 +                return r;
@@ -39,7 +39,7 @@
 +                int r;
                  path = "/etc/hostname";
 +                r = read_etc_hostname_distro(path, ret);
-+                if (r > 0)
++                if (r == 0)
 +                        return r;
 +        }
  
This page took 0.038409 seconds and 4 git commands to generate.