add a zero of cpu.. just in case.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Jun 2009 14:59:12 +0000 (14:59 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Jun 2009 14:59:12 +0000 (14:59 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@41195 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_cpu.c

index 3e323a3..68a3821 100644 (file)
@@ -256,6 +256,7 @@ evas_common_cpu_count(void)
 
    if (cpus != 0) return cpus;
 
+   CPU_ZERO(&cpu);
    if (sched_getaffinity(0, sizeof(cpu), &cpu) != 0)
      {
        printf("[Evas] could not get cpu affinity: %s\n", strerror(errno));