diff options
Diffstat (limited to 'tools/pygrub/src/fsys/ext2/ext2module.c')
-rw-r--r-- | tools/pygrub/src/fsys/ext2/ext2module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/pygrub/src/fsys/ext2/ext2module.c b/tools/pygrub/src/fsys/ext2/ext2module.c index 63d20f2983..57f1a83eaf 100644 --- a/tools/pygrub/src/fsys/ext2/ext2module.c +++ b/tools/pygrub/src/fsys/ext2/ext2module.c @@ -228,7 +228,10 @@ ext2_fs_open (Ext2Fs *fs, PyObject *args, PyObject *kwargs) } #ifdef HAVE_EXT2FS_OPEN2 - if (offset != 0) { + if (offset == 0) { + offsetopt[0] = '\0'; + } + else { snprintf(offsetopt, 29, "offset=%d", offset); } |