1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

There is no reason to "stracpy" already allocated string.

This commit is contained in:
witekfl 2006-01-18 20:08:50 +01:00 committed by
parent 095e440270
commit bf3faa5c2b

View File

@ -294,7 +294,7 @@ js_window_open(struct SEE_interpreter *interp, struct SEE_object *self,
if (deo) {
deo->ses = ses;
deo->uri = get_uri_reference(uri);
deo->target = stracpy(target);
deo->target = target;
/* target will be freed in delayed_goto_uri_frame */
register_bottom_half(delayed_goto_uri_frame, deo);
goto end;