|
@@ -782,8 +782,12 @@ int setting_cmp ( struct setting *a, struct setting *b ) {
|
782
|
782
|
if ( a->tag && ( a->tag == b->tag ) )
|
783
|
783
|
return 0;
|
784
|
784
|
|
785
|
|
- /* Otherwise, compare the names */
|
786
|
|
- return strcmp ( a->name, b->name );
|
|
785
|
+ /* Otherwise, if the settings have names, compare them */
|
|
786
|
+ if ( a->name && b->name && a->name[0] )
|
|
787
|
+ return strcmp ( a->name, b->name );
|
|
788
|
+
|
|
789
|
+ /* Otherwise, return a non-match */
|
|
790
|
+ return ( ! 0 );
|
787
|
791
|
}
|
788
|
792
|
|
789
|
793
|
/******************************************************************************
|