Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Non-bug in quotestring()/utils.c
- X-seq: zsh-workers 36594
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Non-bug in quotestring()/utils.c
- Date: Tue, 22 Sep 2015 09:54:08 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=U3RXzctpcbMGbsFC3vZyakRuwJLpOiRdhOv8bEj/arc=; b=TOBPxLhOZfcSF/mzAI5KaHuvB5sS21S/d6rEYx0NmsDDFHGdTFzgWvjSCqqItbm4+i MSeSad4x8TlO218J8x1U8tMilmbWQ5xvoAxPZaHr/v5eZ65Bl9zfBbLzE64iFq0rA6LC BGW1zxzu61fcNqKpzhy/mltSh31Gti/hVEFkSdFTAxBUqbTxGYBJKPYpQU/tEZLsYIF7 Jh5y5/4bezAG3noKs7a8PMXuzunCt/7wgbF8KhSxXiXjyvlEjYYTXsuKLetc+tqsgjpr tpkA/mid7IHpYkS+d/EHWU4U6ZV332BUhBv3mEwgtaPRLksknInyNZRbgMaXBXDJrnr5 +BHA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
when compiling, the following warning is issued:
utils.c:5392:6: warning: expression result unused [-Wunused-value]
*u++;
The expression is the same as *(u++). Maybe the author used the
"after"-++ to expect that it will be applied after dereference? What
actually happens is that it is the dereference that is applied last.
On the other hand, the code:
if (inull(*u))
*u++;
- the "if character 0 then skip it" - looks sensible. As there are no
bugs reported about quoting string, the line should probably be
changed to simple u++. So I entitled the email "non-bug", seeing
nothing harmful happens. What is the quoting "QT_DOLLARS", to do some
tests before applying a patch?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author