Merge lp:~hikiko/unity-control-center/unity-control-center.race-cond-empty-monitor-name into lp:unity-control-center
Proposed by
Eleni Maria Stea
Status: | Merged |
---|---|
Merged at revision: | 12732 |
Proposed branch: | lp:~hikiko/unity-control-center/unity-control-center.race-cond-empty-monitor-name |
Merge into: | lp:unity-control-center |
Diff against target: |
47 lines (+14/-4) 1 file modified
panels/display/cc-display-panel.c (+14/-4) |
To merge this branch: | bzr merge lp:~hikiko/unity-control-center/unity-control-center.race-cond-empty-monitor-name |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Sebastien Bacher | Pending | ||
Review via email: mp+207974@code.launchpad.net |
Commit message
fixed race condition when the monitor is not detected correctly (and the monitor name is null)
added a mark in 1.0 (default value)
Description of the change
fixed race condition when the monitor is not detected correctly (and the monitor name is null)
added a mark in 1.0 (default value)
To post a comment you must log in.
Thanks for the work! Some review comments
* > g_warning ("Invalid dictionary entry.\n");
the "\n" is not needed with g_warning
While you are doing some code cleaning, desrt pointed those on IRC:
* add_dict_entry(),
" g_variant_get_child (tmp, 0, "s", &str);
if (!str)
{
fprintf (stderr, "Invalid dictionary entry\n");"
that case can be dropped, it's not possible for str to be null
- the malloc() uses should be replaced by g_new(), the function leaks the result
Could you fix at least the warnings? The other comments can be addressed later in another merge then if you prefer to handle cleanups separatly