pulsecore: use r returned from fgets()
authorMarc-André Lureau <marc-andre.lureau@nokia.com>
Wed, 18 Feb 2009 16:21:25 +0000 (18:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2009 03:56:44 +0000 (04:56 +0100)
src/pulsecore/core-util.c

index 61f9a65..432ee3b 100644 (file)
@@ -2459,7 +2459,7 @@ char *pa_machine_id(void) {
 
         pa_strip_nl(ln);
 
-        if (ln[0])
+        if (r && ln[0])
             return pa_xstrdup(ln);
     }