]> git.sur5r.net Git - i3/i3status/commit
Fix memory leak/Use BEGINS_WITH macro
authorFabian Franzen <fabian.franzen@tum.de>
Wed, 12 Apr 2017 11:11:34 +0000 (13:11 +0200)
committerFabian Franzen <fabian.franzen@tum.de>
Wed, 12 Apr 2017 11:11:34 +0000 (13:11 +0200)
commitad3fac03c34ddee7108542d292a09e99f879d3db
tree5cdf2b0e3d2db883172a0efedac6b4bcdbe2ae82
parentf45581f8d8bffff8f1eb98486953ec491eb77a05
Fix memory leak/Use BEGINS_WITH macro

The orignal proposed code had a memory leak when returning true.
Furthermore I included the handy BEGINS_WITH macro of i3 which makes the
code (IMHO) a lot more readable.
src/first_network_device.c