From 5899c281ce076ca04e46c8d6f54bce324741f9af Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sun, 11 Jun 2006 00:37:31 +0000 Subject: [PATCH] SMJS: bookmark_folder_get_property: Reflow some code. --- src/scripting/smjs/bookmarks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting/smjs/bookmarks.c b/src/scripting/smjs/bookmarks.c index a7ae5b86..b9f095fc 100644 --- a/src/scripting/smjs/bookmarks.c +++ b/src/scripting/smjs/bookmarks.c @@ -171,9 +171,9 @@ bookmark_folder_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp) if (!title) return JS_TRUE; bookmark = get_bookmark_by_name(folder, title); - if (!bookmark) return JS_TRUE; - - *vp = OBJECT_TO_JSVAL(smjs_get_bookmark_object(bookmark)); + if (bookmark) { + *vp = OBJECT_TO_JSVAL(smjs_get_bookmark_object(bookmark)); + } return JS_TRUE; }