Permalink
Browse files

Merge pull request #14 from mgottschlag/memset-fix

pscnv_gdev.c: Swapped memset parameters (this silences a gcc warning).
  • Loading branch information...
2 parents db06a74 + bad7908 commit a708968865ad7a2d2e7e31273dc2cffc0958c4cb @shinpei0208 shinpei0208 committed Mar 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/user/pscnv/pscnv_gdev.c
@@ -79,7 +79,7 @@ struct gdev_device *gdev_raw_dev_open(int minor)
gdevs = MALLOC(sizeof(*gdevs) * GDEV_DEVICE_MAX_COUNT);
if (!gdevs)
return NULL;
- memset(gdevs, sizeof(*gdevs) * GDEV_DEVICE_MAX_COUNT, 0);
+ memset(gdevs, 0, sizeof(*gdevs) * GDEV_DEVICE_MAX_COUNT);
}
gdev = &gdevs[minor];

0 comments on commit a708968

Please sign in to comment.