X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-debug.c;h=4750c9d377d827c3b85574749c020c2000ebf0f2;hb=38c1b9aab8bfb41de6dc07df26fd6743a63ea015;hp=911521bcc986387a473a27e821d38d81a93e9a5f;hpb=597433bc874ff2cf5cb9f9de4e053db47837e042;p=evince.git diff --git a/libdocument/ev-debug.c b/libdocument/ev-debug.c index 911521bc..4750c9d3 100644 --- a/libdocument/ev-debug.c +++ b/libdocument/ev-debug.c @@ -18,8 +18,8 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. */ /* @@ -65,11 +65,10 @@ profile_init () if (g_getenv ("EV_PROFILE") != NULL) { /* enable all profiling */ ev_profile = ~EV_NO_PROFILE; - return; - } - - if (g_getenv ("EV_PROFILE_JOBS") != NULL) - ev_profile |= EV_PROFILE_JOBS; + } else { + if (g_getenv ("EV_PROFILE_JOBS") != NULL) + ev_profile |= EV_PROFILE_JOBS; + } if (ev_profile) { timers = g_hash_table_new_full (g_str_hash, @@ -80,14 +79,14 @@ profile_init () } void -ev_debug_init () +_ev_debug_init () { debug_init (); profile_init (); } void -ev_debug_shutdown () +_ev_debug_shutdown () { if (timers) { g_hash_table_destroy (timers);