GNOME Bugzilla – Bug 776467
[review] ifcfg-rh refactoring line handling in shvar.c [th/ifcfg-shvar-line-bgo776467]
Last modified: 2017-01-02 16:05:21 UTC
please review
> ifcfg-rh: refactor searching and replacing shvarLine in svhar.c + /* if we find multiple entires for the same key, we can entries > ifcfg-rh: refactor handling of lines in shvar.c +line_new_parse (const char *value, gsize len) { [...] + if ( g_ascii_isalpha (value[e]) + || value[e] != '_') { This should be "value[e] == '_'" to accept the underscore as first character in variable name? > ifcfg-rh: add assertions for handling lines in "shvar.c" + * whitespace prefix, and @key points into @key_with_prefix skiping over the s/skiping/skipping/ The rest LGTM.
(In reply to Beniamino Galvani from comment #1) > [...] > + if ( g_ascii_isalpha (value[e]) > + || value[e] != '_') { > > This should be "value[e] == '_'" to accept the underscore as first > character in variable name? good catch!! Fixed all and repushed. Thanks!
(In reply to Thomas Haller from comment #2) > Fixed all and repushed. Thanks! LGTM.
merged: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=922cb4ab77b634469d08992e3172fe9313fda386