Summary: | ksysguardd segfaults when files are not readable | ||
---|---|---|---|
Product: | [Unmaintained] ksysguard | Reporter: | Andreas Hartmann <andihartmann> |
Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Andreas Hartmann
2006-10-22 09:02:16 UTC
SVN commit 598023 by bram: Move fclose() into a block where fp does exist. BUG:136119 M +1 -2 logfile.c --- branches/KDE/3.5/kdebase/ksysguard/ksysguardd/Linux/logfile.c #598022:598023 @@ -59,9 +59,8 @@ if ( ( fp = fopen( entry->path, "r" ) ) != NULL ) { snprintf( monitor, 1024, "logfiles/%s", entry->name ); registerMonitor( monitor, "logfile", printLogFile, printLogFileInfo, sm ); + fclose( fp ); } - - fclose( fp ); } LogFiles = new_ctnr(); |