+2005-09-27 Christian Persch <chpe@cvs.gnome.org>
+
+ * shell/ev-window-title.c: (ev_window_title_update):
+
+ Guard against using g_strstrip on NULL. Fixes bug #317291.
+
2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>
* pdf/ev-poppler.cc:
g_return_if_fail (page_cache != NULL);
doc_title = (char *)ev_page_cache_get_title (page_cache);
- doc_title = g_strstrip (doc_title);
-
/* Make sure we get a valid title back */
- if (doc_title && doc_title[0] != '\000' &&
- g_utf8_validate (doc_title, -1, NULL)) {
- title = g_strdup (doc_title);
+ if (doc_title != NULL) {
+ doc_title = g_strstrip (doc_title);
+
+ if (doc_title[0] != '\0' &&
+ g_utf8_validate (doc_title, -1, NULL)) {
+ title = g_strdup (doc_title);
+ }
}
}