Browse Source

[settings] Allow for setting fetchers to fail in fetchf_hex()

tags/v0.9.4
Michael Brown 16 years ago
parent
commit
6936c40fef
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/core/settings.c

+ 2
- 0
src/core/settings.c View File

@@ -1040,6 +1040,8 @@ static int fetchf_hex ( struct settings *settings, struct setting *setting,
1040 1040
 
1041 1041
 		check_len = fetch_setting ( settings, setting, raw,
1042 1042
 					    sizeof ( raw ) );
1043
+		if ( check_len < 0 )
1044
+			return check_len;
1043 1045
 		assert ( check_len == raw_len );
1044 1046
 		
1045 1047
 		if ( len )

Loading…
Cancel
Save