1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

SMJS: bookmark_folder_get_property: Reflow some code.

This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-11 00:37:31 +00:00 committed by Miciah Dashiel Butler Masters
parent 1a3b718f98
commit 5899c281ce

View File

@ -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;
}