commit | d16ebaace10b246f411d65caa83c7ebdafd0a300 | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Tue Feb 05 13:44:05 2013 -0500 |
committer | Eric Paris <eparis@redhat.com> | Tue Feb 05 20:19:03 2013 -0500 |
tree | 480ee6684366e439a0a79da3588a88d76b3a3960 | |
parent | 3a4fc087eebc9b72bc0fbf7978ab648fa2af6da6 [diff] |
libsemanage: semanage_store: rewrite for readability We did a bunch of: if ((blah = function(a0, a1, a2)) == NULL) { goto err; } else { something = blah; } Which takes 5 lines and is a pain to read. Instead: blah = function(a0, a1, a2); if (blah == NULL) goto err; something = blah; Which takes 4 lines and is easier to read! Winning! Signed-off-by: Eric Paris <eparis@redhat.com>