瀏覽代碼

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

tags/v0.9.4
Michael Brown 16 年之前
父節點
當前提交
6936c40fef
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/core/settings.c

+ 2
- 0
src/core/settings.c 查看文件

@@ -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…
取消
儲存