Practice more defensive programming.

This commit is contained in:
rocky
2003-10-03 08:36:39 +00:00
parent ae84a8ee00
commit 8cc16ea8ba
2 changed files with 14 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: sample3.c,v 1.4 2003/09/28 22:11:00 rocky Exp $
$Id: sample3.c,v 1.5 2003/10/03 08:36:39 rocky Exp $
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
@@ -130,6 +130,7 @@ main(int argc, const char *argv[])
if (NULL == cdio) {
printf("Problem in trying to find a driver.\n\n");
return 1;
}
first_track_num = cdio_get_first_track_num(cdio);