Message ID | 1381503951-27985-60-git-send-email-kwolf@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/vmdk.c b/block/vmdk.c index 709aa3d..5a9f278 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -772,10 +772,13 @@ static int vmdk_parse_extents(const char *desc, BlockDriverState *bs, } next_line: /* move to next line */ - while (*p && *p != '\n') { + while (*p) { + if (*p == '\n') { + p++; + break; + } p++; } - p++; } return 0; }