svg_loader: fixing segf when passing a nullptr to strcmp 33/289333/1
authormgrudzinska <m.grudzinska@samsung.com>
Sun, 3 Apr 2022 20:32:26 +0000 (22:32 +0200)
committerMichal Szczecinski <mihashco89@gmail.com>
Mon, 6 Mar 2023 10:00:15 +0000 (11:00 +0100)
commit2d249a6a9267cb8e876a74c77bee838e30932ce5
tree63f9e056697546e19787cada8090c5d93fb5d90b
parent79700b1a348141724305d7bfae1f23a917369e07
svg_loader: fixing segf when passing a nullptr to strcmp

This occurred when a gradient has no 'id' attribute.

Change-Id: I8b4204a657e4ea6fd298bcbfd244a09a46f05d11
src/loaders/svg/tvgSvgLoader.cpp