scanner: Check name == NULL for enum entries

From a clang static analysis warning.
1 file changed