summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 601abec)
raw | patch | inline | side by side (parent: 601abec)
author | octo <octo> | |
Fri, 14 Apr 2006 15:27:11 +0000 (15:27 +0000) | ||
committer | octo <octo> | |
Fri, 14 Apr 2006 15:27:11 +0000 (15:27 +0000) |
src/battery.c | patch | blob | history |
diff --git a/src/battery.c b/src/battery.c
index 61379e0209bc38528df7cfe909ac07e4875e13bd..fa93b1c66a6b81903fe4f53a63925176590cdb33 100644 (file)
--- a/src/battery.c
+++ b/src/battery.c
&ps_value))
{
if (CFGetTypeID (ps_value) != CFStringGetTypeID ())
+ {
if (!CFStringGetCString (ps_value,
name, 128,
kCFStringEncodingASCII))
continue;
+ }
else
+ {
DBG ("kIOPSNameKey: Not a CFStringGetTypeID");
+ }
DBG ("Original string: `%s'", name);
}
else