Commit 01da241d authored by Halla Rempt's avatar Halla Rempt

Set error to 0 if we manage to get the memory size

parent e6471aa0
......@@ -217,6 +217,7 @@ int KisImageConfig::totalRAM()
if (sysctl(mib, namelen, &size, &len, NULL, 0) > 0) {
totalMemory = size;
error = 0;
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment