chiark / gitweb /
get sense of test right
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Jun 2012 20:38:43 +0000 (21:38 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Jun 2012 20:38:43 +0000 (21:38 +0100)
cprogs/xbatmon-simple.c

index 62a7f25..6ca3294 100644 (file)
@@ -532,7 +532,7 @@ static const char *getresource(const char *want) {
   sprintf(class_buf,"Xacpi-Simple.%s",want);
   
   r= XrmGetResource(xrm, name_buf,class_buf, &rep_type_dummy, &val);
-  if (!r) return val.addr;
+  if (r) return val.addr;
   
   return 0;
 }