~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to src/chassis-keyfile.c

  • Committer: jan at mysql
  • Date: 2010-07-06 18:35:20 UTC
  • Revision ID: jan@mysql.com-20100706183520-615cpk5fhx0czpug
strip leading whitespace from string-list-fields

  * use g_strstrip() instead of g_strchomp() to remove the leading whitespace too
  * if you need leading whitespaces use \s instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                        arg_string_array = g_key_file_get_string_list(keyfile, ini_group_name, entry->long_name, &len, &gerr);
63
63
                        if (!gerr) {
64
64
                                for (j = 0; arg_string_array[j]; j++) {
65
 
                                        g_strchomp(arg_string_array[j]);
 
65
                                        arg_string_array[j] = g_strstrip(arg_string_array[j]);
66
66
                                }       
67
67
                                *(gchar ***)(entry->arg_data) = arg_string_array;
68
68
                        }