Hi Michel,
Thanks for your advice.
When I used command " git send-email --to [email protected]
0001-xfree86-vgaarb-Initialize-local-variable-rsrc_decode.patch", it occurs
follow error:
"Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES:
server=smtp.amd.com encryption= hello=emily-To-be-filled-by-O-E-M.amd.com
port=25 at /usr/lib/git-core/git-send-email line 1255."
I don't know why, do you have any suggestion?
Best Wishes,
Emily Deng
-----Original Message-----
From: Michel Dänzer [mailto:[email protected]]
Sent: Thursday, July 21, 2016 2:32 PM
To: Deng, Emily <[email protected]>
Cc: [email protected]
Subject: Re: Bug fix https://bugs.freedesktop.org/show_bug.cgi?id=96937
On 21.07.2016 12:51, Deng, Emily wrote:
>
> As title. Thanks.
Please send patches inline, preferably using git send-email.
> From: jqdeng <[email protected]>
Might be nice if the Git author information has your full name, but that's just
cosmetic, not a big deal.
> Subject: [PATCH] Fixes:
> https://bugs.freedesktop.org/show_bug.cgi?id=96937
Please write a proper commit log:
A single line shortlog summarizing what the change does, e.g.
xfree86: vgaarb: Initialize local variable rsrc_decodes
Then one or several paragraphs describing the problem and the solution, and
finally
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96937
to reference the bug report.
> diff --git a/hw/xfree86/common/xf86VGAarbiter.c
> b/hw/xfree86/common/xf86VGAarbiter.c
> index 5cc2429..0a3d6c6 100644
> --- a/hw/xfree86/common/xf86VGAarbiter.c
> +++ b/hw/xfree86/common/xf86VGAarbiter.c
> @@ -105,7 +105,7 @@ Bool
> xf86VGAarbiterAllowDRI(ScreenPtr pScreen) {
> int vga_count;
> - int rsrc_decodes;
> + int rsrc_decodes = 0;
> ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
>
> if (vga_no_arb)
Out of curiosity, why is pScrn->vgaDev == NULL in this case?
Anyway, the code change looks good to me.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel