~ubuntu-dev/ubuntu/lucid/zabbix/lucid-201002110857

« back to all changes in this revision

Viewing changes to src/libs/zbxsysinfo/linux/sensors.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-06-04 09:22:37 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080604092237-zgwq7kmraj1oohoz
Tags: 1:1.4.5-1ubuntu1
* Merge from debian unstable, remaining changes: 
  + fixing missing pid directory in /var/run
* Added the same patch to debian/zabbix-server-{mysql,pgsql}.zabbix-server.init
  (LP: #172775)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
                        {
57
57
                                continue;
58
58
                        }
59
 
                        fgets(line,MAX_STRING_LEN,f);
 
59
                        if(NULL == fgets(line,MAX_STRING_LEN,f))
 
60
                        {
 
61
                                zbx_fclose(f);
 
62
                                continue;
 
63
                        }
60
64
                        zbx_fclose(f);
61
65
 
62
66
                        if(sscanf(line,"%lf\t%lf\t%lf\n",&d1, &d2, &d3) == 3)