Fix support for --update=swapsuper
The user of dup_super broke it.
This commit is contained in:
parent
294d6f450f
commit
ff1f6545db
3
super0.c
3
super0.c
|
@ -856,7 +856,8 @@ static struct supertype *match_metadata_desc0(char *arg)
|
||||||
return st;
|
return st;
|
||||||
|
|
||||||
st->minor_version = 9; /* flag for 'byte-swapped' */
|
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;
|
return st;
|
||||||
|
|
||||||
free(st);
|
free(st);
|
||||||
|
|
3
util.c
3
util.c
|
@ -781,7 +781,8 @@ struct supertype *dup_super(struct supertype *st)
|
||||||
for (i = 0; stnew == NULL && superlist[i] ; i++)
|
for (i = 0; stnew == NULL && superlist[i] ; i++)
|
||||||
stnew = superlist[i]->match_metadata_desc(verstr);
|
stnew = superlist[i]->match_metadata_desc(verstr);
|
||||||
|
|
||||||
stnew->sb = NULL;
|
if (stnew)
|
||||||
|
stnew->sb = NULL;
|
||||||
return stnew;
|
return stnew;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue