X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cat%2Fvirt-filesystems.c;h=ac6466fbc20c3f0f59084d59db398b9ccddba44e;hb=425374ddc84c4f9f74a5218e8d35452bb511d9f3;hp=6e160a228d46adc7a6753b1f8d312a003cdc893c;hpb=51672634fddc20095adc1300e0bfee2c99c604f5;p=libguestfs.git diff --git a/cat/virt-filesystems.c b/cat/virt-filesystems.c index 6e160a2..ac6466f 100644 --- a/cat/virt-filesystems.c +++ b/cat/virt-filesystems.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -449,7 +449,7 @@ do_output_filesystems (void) /* Skip swap and unknown, unless --extra flag was given. */ if (!(output & OUTPUT_FILESYSTEMS_EXTRA) && (STREQ (fses[i+1], "swap") || STREQ (fses[i+1], "unknown"))) - continue; + goto next; dev = canonical_device (fses[i]); @@ -492,6 +492,8 @@ do_output_filesystems (void) free (dev); free (vfs_label); free (vfs_uuid); + + next: free (fses[i]); free (fses[i+1]); }