The previous check is no longer necessary as keys are now always followed
by '=', but in case of empty lines now the function would crash instead
of setting "plugin/=yes" (which didn't make sense either)
size_t len;
int ret;
- if (strchr(line, '=') == NULL)
- line = t_strconcat(line, "=yes", NULL);
orig_key = key = t_strcut(line, '=');
+ /* Ignore empty keys (and lines) rather than prepend 'plugin/=' to them.
+ Also, prevent emtpy lines from crashing later in settings_parse_line() */
+ if (*key == '\0')
+ return 1;
+
len = strlen(key);
if (len > 0 && key[len-1] == '+') {
/* key+=value */