Explorar el Código

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

tags/v0.9.4
Michael Brown hace 16 años
padre
commit
6936c40fef
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      src/core/settings.c

+ 2
- 0
src/core/settings.c Ver fichero

@@ -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…
Cancelar
Guardar