filename | src/config.c |
changeset | 608:4f588e52bce0 |
prev | 561:533f6b478071 |
next | 643:653b0a70f173 |
author | nkeynes |
date | Sun Mar 16 04:49:19 2008 +0000 (16 years ago) |
branch | lxdream-render |
permissions | -rw-r--r-- |
last change | Use max-z rather than min-z for tri sort (still wrong for some cases of course, but consistent with prior behaviour) |
file | annotate | diff | log | raw |
1.1 --- a/src/config.c Tue Jan 01 05:08:38 2008 +00001.2 +++ b/src/config.c Sun Mar 16 04:49:19 2008 +00001.3 @@ -312,12 +312,13 @@1.4 fprintf( f, "Device %d = %s\n", i, dev->device_class->name );1.5 else1.6 fprintf( f, "Subdevice %d = %s\n", j, dev->device_class->name );1.7 - entry = dev->get_config(dev);1.8 - while( entry->key != NULL ) {1.9 - if( entry->value != NULL ) {1.10 - fprintf( f, "%*c%s = %s\n", j==0?4:8, ' ',entry->key, entry->value );1.11 + if( dev->get_config != NULL && ((entry = dev->get_config(dev)) != NULL) ) {1.12 + while( entry->key != NULL ) {1.13 + if( entry->value != NULL ) {1.14 + fprintf( f, "%*c%s = %s\n", j==0?4:8, ' ',entry->key, entry->value );1.15 + }1.16 + entry++;1.17 }1.18 - entry++;1.19 }1.20 }1.21 }
.