diff options
author | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-02-18 18:21:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-19 04:56:44 +0100 |
commit | 4f1380b7138d5862e8f12c9060ef46f0355c160b (patch) | |
tree | ba281b42acae630e19c43853e26e8d606394aa2c /src/pulsecore | |
parent | 204083cb325ba3db09ca75b70e9d3d6adfb67e0d (diff) |
pulsecore: use r returned from fgets()
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/core-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 61f9a656..432ee3b7 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -2459,7 +2459,7 @@ char *pa_machine_id(void) { pa_strip_nl(ln); - if (ln[0]) + if (r && ln[0]) return pa_xstrdup(ln); } |