diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-16 03:13:42 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-16 03:14:20 -0300 |
commit | adbfe3c3f171af332322d61f2a4912f36b57edda (patch) | |
tree | 6ac08e0b6c2b8b4d3d2582a0700164159034122d /Settings.c | |
parent | 40f3391a3c5d391c096aa3d4c0a61cbf79c37060 (diff) |
Get FreeBSD tree to compile again with latest changes.
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -139,7 +139,7 @@ static void readFields(ProcessField* fields, int* flags, const char* line) { for (j = 0, i = 0; i < Platform_numberOfFields && ids[i]; i++) { // This "+1" is for compatibility with the older enum format. int id = atoi(ids[i]) + 1; - if (id > 0 && id < Platform_numberOfFields) { + if (id > 0 && Process_fields[id].name && id < Platform_numberOfFields) { fields[j] = id; *flags |= Process_fields[id].flags; j++; |