Re: [hackers] [surf][PATCH] Don't call setstyle with an empty path

From: <fossy_AT_dnmx.org>
Date: Tue, 3 May 2022 14:45:05 -0400

> const char *file = getstyle(geturi(c));
> if (file)
> setstyle(c, file);


Just wondering - why not just do
if (*getstyle(geturi(c)))
  setstyle(c, file);

I forgot how one dereferences a pointer without giving it to an variable,
is this right? haha I am such a schizo, forgive me

Anyways - reason: simplicity.. ain't that what Suckless is about? <3

Have a nice day!
Received on Tue May 03 2022 - 20:45:05 CEST

This archive was generated by hypermail 2.3.0 : Tue May 03 2022 - 20:48:36 CEST