|
@@ -1866,12 +1866,15 @@ void process_commands()
|
1866
|
1866
|
|
1867
|
1867
|
codenum = 0;
|
1868
|
1868
|
|
1869
|
|
- bool hasP = code_seen('P');
|
1870
|
|
- if (hasP) codenum = code_value(); // milliseconds to wait
|
1871
|
|
-
|
1872
|
|
- bool hasS = code_seen('S');
|
1873
|
|
- if (hasS) codenum = code_value() * 1000; // seconds to wait
|
1874
|
|
-
|
|
1869
|
+ bool hasP = false, hasS = false;
|
|
1870
|
+ if (code_seen('P')) {
|
|
1871
|
+ codenum = code_value(); // milliseconds to wait
|
|
1872
|
+ hasP = codenum > 0;
|
|
1873
|
+ }
|
|
1874
|
+ if (code_seen('S')) {
|
|
1875
|
+ codenum = code_value() * 1000; // seconds to wait
|
|
1876
|
+ hasS = codenum > 0;
|
|
1877
|
+ }
|
1875
|
1878
|
if (!hasP && !hasS && *src != '\0') {
|
1876
|
1879
|
starpos = strchr(src, '*');
|
1877
|
1880
|
if (starpos != NULL) *(starpos) = '\0';
|