xfs: use NULL instead of 0 to initialize a pointer in xfs_getfsmap

Found by sparse.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
This commit is contained in:
Christoph Hellwig 2017-04-21 11:24:39 -07:00 • committed by Darrick J. Wong
commit fad5656b22

View file

@ -827,7 +827,7 @@ xfs_getfsmap(
struct xfs_trans *tp = NULL;
struct xfs_fsmap dkeys[2]; /* per-dev keys */
struct xfs_getfsmap_dev handlers[XFS_GETFSMAP_DEVS];
struct xfs_getfsmap_info info = {0};
struct xfs_getfsmap_info info = { NULL };
int i;
int error = 0;