diff options
-rw-r--r-- | super0.c | 3 | ||||
-rw-r--r-- | util.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -856,7 +856,8 @@ static struct supertype *match_metadata_desc0(char *arg) return st; st->minor_version = 9; /* flag for 'byte-swapped' */ - if (strcmp(arg, "0.swap")==0) + if (strcmp(arg, "0.swap")==0 || + strcmp(arg, "0.9") == 0) /* For dup_super support */ return st; free(st); @@ -781,7 +781,8 @@ struct supertype *dup_super(struct supertype *st) for (i = 0; stnew == NULL && superlist[i] ; i++) stnew = superlist[i]->match_metadata_desc(verstr); - stnew->sb = NULL; + if (stnew) + stnew->sb = NULL; return stnew; } |