Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win32
mingw32-evince
0001-libdocument-Check-for-NULL-in-synctex_back...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-libdocument-Check-for-NULL-in-synctex_backward_searc.patch of Package mingw32-evince
From a933a516e9b6a4199d22055f9041747e00498901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Aliste?= <jaliste@src.gnome.org> Date: Wed, 29 Sep 2010 12:22:32 -0400 Subject: [PATCH] [libdocument] Check for NULL in synctex_backward_search. Fixes bug #630845 --- libdocument/ev-document.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index 70349dc..742b51c 100644 --- a/libdocument/ev-document.c +++ b/libdocument/ev-document.c @@ -419,11 +419,16 @@ ev_document_synctex_backward_search (EvDocument *document, /* We assume that a backward search returns either zero or one result_node */ node = synctex_next_result (scanner); if (node != NULL) { - result = g_new (EvSourceLink, 1); - result->filename = synctex_scanner_get_name (scanner, - synctex_node_tag (node)); - result->line = synctex_node_line (node); - result->col = synctex_node_column (node); + const gchar *filename; + + filename = synctex_scanner_get_name (scanner, synctex_node_tag (node)); + + if (filename) { + result = g_new (EvSourceLink, 1); + result->filename = filename; + result->line = synctex_node_line (node); + result->col = synctex_node_column (node); + } } } -- 1.7.4.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor