Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Q Qemu
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • El shab Ahmed
  • Qemu
  • Repository
  • qemu
  • aio-posix.c
Find file BlameHistoryPermalink
  • Markus Armbruster's avatar
    block: Use g_new0() for a bit of extra type checking · 3ba235a0
    Markus Armbruster authored Dec 04, 2014
    g_new(T, 1) is safer than g_malloc(sizeof(T)), because it returns T *
    rather than void *, which lets the compiler catch more type errors.
    
    Missed in commit 02c4f26b
    
    .
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-id: 1417697709-13087-1-git-send-email-armbru@redhat.com
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    3ba235a0