]> git.alsa-project.org Git - alsa-lib.git/commit
alsa-lib: fix the array parser (unique compound keys)
authorJaroslav Kysela <perex@perex.cz>
Thu, 12 Dec 2019 17:42:33 +0000 (18:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 12 Dec 2019 17:44:35 +0000 (18:44 +0100)
commit9980e18c3c99da42a90a98b140a0ffe7d0f92cd3
tree40e73058b930acb2efc16068cf9fe2c1ebc12099
parent1744159180ac94a72036d7232e674c58cedee70a
alsa-lib: fix the array parser (unique compound keys)

The code from the old import may merge arrays wrongly and
the result is a compound with same keys like:

Input:

        lines [
                "SSP0.OUT, , BUF1.3"
        ]
        lines [
                "BUF2.0, , SSP0.IN"
        ]

Parsed contents:

        lines {
                0 'SSP0.OUT, , BUF1.3'
                0 'BUF2.0, , SSP0.IN'
        }

Proper parsed contents (create+merge mode):

        lines {
                0 'SSP0.OUT, , BUF1.3'
                1 'BUF2.0, , SSP0.IN'
        }

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c