Skip to content

Commit

Permalink
nwlib: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jun 4, 2024
1 parent 3f23b47 commit 501f86e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bld/nwlib/c/implib.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,17 +466,18 @@ static void peAddImport( libfile io, long header_offset, const arch_header *arch
static char *GetImportString( char **rawpntr, const char *original )
{
bool quote = false;
char *raw = *rawpntr;
char *raw;
char *result;

raw = *rawpntr;
if( *raw == '\'' ) {
quote = true;
++raw;
}

result = raw;

while( *raw && (quote || (*raw != '.')) ) {
while( *raw != '\0' && (quote || (*raw != '.')) ) {
if( quote
&& (*raw == '\'') ) {
quote = false;
Expand Down

0 comments on commit 501f86e

Please sign in to comment.