1. 09 9月, 2010 2 次提交
  2. 21 8月, 2010 1 次提交
    • B
      Replace qemu_malloc + memset with qemu_mallocz · cc597832
      Blue Swirl 提交于
      Replace a qemu_malloc call, followed by a memset, with qemu_mallocz.
      
      Found with this Coccinelle semantic patch, adapted from
      Coccinelle test package rule 94:
      @@
      type T;
      expression x;
      expression E;
      @@
      
      - x = (T)qemu_malloc(E)
      + x = qemu_mallocz(E)
        ...
      (
      - memset(x,0,E);
      |
      - memset(x,0,sizeof(*x));
      )
      
      Some files (tests/*) had to be filtered out.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      cc597832
  3. 23 6月, 2010 10 次提交
  4. 04 5月, 2010 19 次提交