Summary: | Adding categories when list is not ending with ; broke with 0.23 | ||
---|---|---|---|
Product: | desktop-file-utils | Reporter: | Pascal Terjan <pterjan> |
Component: | general | Assignee: | Hans Petter Jansson <hpj> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Patch fixing the issue
Patch fixing the problem Patch fixing the problem |
Description
Pascal Terjan
2016-08-18 02:02:54 UTC
Comment on attachment 125863 [details] [review] Patch fixing the issue I have now tested that it fixes the problem. Comment on attachment 125863 [details] [review] Patch fixing the issue Review of attachment 125863 [details] [review]: ----------------------------------------------------------------- Good catch! The patch looks good except for some minor formatting nits. ::: src/keyfileutils.c @@ +187,5 @@ > > value = g_key_file_get_value (keyfile, group, key, NULL); > > + if (value) { > + size_t l = strlen(value); Needs space after "strlen", i.e. strlen (value). I'd prefer "len" over "l" as the variable name, since we use that elsewhere. @@ +188,5 @@ > value = g_key_file_get_value (keyfile, group, key, NULL); > > + if (value) { > + size_t l = strlen(value); > + if (l > 0 && value[l-1] != ';') { Needs space around operator, i.e. "value[len - 1]". Created attachment 125873 [details] [review] Patch fixing the problem Created attachment 125874 [details] [review] Patch fixing the problem Here is an updated patch Thanks! Committed to master: https://cgit.freedesktop.org/xdg/desktop-file-utils/commit/?id=d281ed4b9db22ff9e4c7e56b5cce58a72d11fc54 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.