only declare rdpsnd_optarg when sound-support is configured

make sure last element of sound-driver-list is NULL


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1331 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2006-11-06 23:05:39 +00:00
parent 598af83615
commit 8d3020eaff
2 changed files with 3 additions and 0 deletions

View File

@ -423,7 +423,9 @@ main(int argc, char *argv[])
BOOL geometry_option = False; BOOL geometry_option = False;
int run_count = 0; /* Session Directory support */ int run_count = 0; /* Session Directory support */
BOOL continue_connect = True; /* Session Directory support */ BOOL continue_connect = True; /* Session Directory support */
#ifdef WITH_RDPSND
char *rdpsnd_optarg = NULL; char *rdpsnd_optarg = NULL;
#endif
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
/* Set locale according to environment */ /* Set locale according to environment */

View File

@ -345,6 +345,7 @@ rdpsnd_register_drivers(char *options)
assert(*reg); assert(*reg);
reg = &((*reg)->next); reg = &((*reg)->next);
#endif #endif
*reg = NULL;
} }
BOOL BOOL