mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 21:28:04 +02:00
xcmx/cmxColNm: Removed unused assignments to pBuf (in two functions)
Pointer "pBuf" returned from "fgets(buf, 256, stream)" is never used Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
cc686655d7
commit
d0266e06d3
1 changed files with 2 additions and 2 deletions
|
|
@ -567,7 +567,7 @@ stringSectionSize(
|
|||
return(XcmsFailure);
|
||||
}
|
||||
|
||||
while((pBuf = fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
|
||||
while((fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
|
||||
if ((sscanf(buf, "%s", token)) && (strcmp(token, END_TOKEN) == 0)) {
|
||||
break;
|
||||
}
|
||||
|
|
@ -651,7 +651,7 @@ ReadColornameDB(
|
|||
* Process lines between START_TOKEN to END_TOKEN
|
||||
*/
|
||||
|
||||
while ((pBuf = fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
|
||||
while ((fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
|
||||
if ((sscanf(buf, "%s", token)) && (strcmp(token, END_TOKEN) == 0)) {
|
||||
/*
|
||||
* Found END_TOKEN so break out of for loop
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue