This is making my brain hurt, but I'm pretty sure this change
dereferences arg->v one fewer times.

Does arg->v point directly to a string, or to a pointer to a
string?

-- 
Jason

On 2015-04-22 05:30PM, Jochen Sprickerhof wrote:
> ---
>  surf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/surf.c b/surf.c
> index 87c10ef..75fa5db 100644
> --- a/surf.c
> +++ b/surf.c
> @@ -1314,7 +1314,7 @@ static void
>  eval(Client *c, const Arg *arg) {
>       WebKitWebFrame *frame = webkit_web_view_get_main_frame(c->view);
>       evalscript(webkit_web_frame_get_global_context(frame),
> -                     ((char **)arg->v)[0], "");
> +                     (char *)arg->v, "");
>  }
>  
>  static void
> -- 
> 2.1.4
> 



Reply via email to