[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Initialise offsetopt when offset == 0. Closes bug #599.
# HG changeset patch # User emellor@xxxxxxxxxxxxxxxxxxxxxx # Node ID b7802a60b09fe181a36e1a32484fe434d9b38e98 # Parent 7af0d54f598c7e1a66564e10c862748c37d3c1a9 Initialise offsetopt when offset == 0. Closes bug #599. Report and diagnosis by Robert Hendrickx <robert.hendrickx@xxxxxxxxxxx>. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 7af0d54f598c -r b7802a60b09f tools/pygrub/src/fsys/ext2/ext2module.c --- a/tools/pygrub/src/fsys/ext2/ext2module.c Mon Apr 10 15:26:23 2006 +++ b/tools/pygrub/src/fsys/ext2/ext2module.c Mon Apr 10 15:28:52 2006 @@ -228,7 +228,10 @@ } #ifdef HAVE_EXT2FS_OPEN2 - if (offset != 0) { + if (offset == 0) { + offsetopt[0] = '\0'; + } + else { snprintf(offsetopt, 29, "offset=%d", offset); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |