X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Frhbz501893.c;h=86e85e58d558740635c71aba5504d340644c6fa0;hp=fcda5cd38f00b5fb5181176fff7bab079f5add5d;hb=dd76ce2b4c93dd10d8eca9ab7c77bc831f103d03;hpb=431503d007b22bf10226843cca84628544fadca9 diff --git a/regressions/rhbz501893.c b/regressions/rhbz501893.c index fcda5cd..86e85e5 100644 --- a/regressions/rhbz501893.c +++ b/regressions/rhbz501893.c @@ -14,7 +14,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 @@ -39,6 +39,12 @@ main (int argc, char *argv[]) assert (guestfs_add_drive (g, NULL) == -1); assert (guestfs_config (g, NULL, NULL) == -1); + /* This optional argument must not be NULL. */ + + assert (guestfs_add_drive_opts (g, "/dev/null", + GUESTFS_ADD_DRIVE_OPTS_FORMAT, NULL, + -1) == -1); + /* These can be safely set to NULL, should be no error. */ assert (guestfs_set_path (g, NULL) == 0);