Skip to content
Snippets Groups Projects
Commit 537796a6 authored by Simon McVittie's avatar Simon McVittie
Browse files

Silence warning regarding (pointer <= 0)


warning: ordered comparison of pointer with integer zero [-Wextra]

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent dbd21b2a
Branches
Tags
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -104,7 +104,7 @@ load_mmap_info (int *err, const char **errstr)
int map_entries = 0;
mmapinfo_t *entries = NULL;
if( maps <= 0 )
if( !maps )
ERROR("Warning: could not open " PROC_FILE);
while( fgets(&map_line[0], sizeof(map_line), maps) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment