diff options
author | Neil Brown <neilb@suse.de> | 2008-05-15 15:50:48 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-05-15 15:50:48 +1000 |
commit | ff1f6545dba0cc2e8c9561cf10de236579d6f58c (patch) | |
tree | c02cc7f86629c58d823c3c63cd462d6f79cbdfd7 /util.c | |
parent | 294d6f450f79fda5475e6e5c99b7be85393f03c6 (diff) |
Fix support for --update=swapsuper
The user of dup_super broke it.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |