mirror of
https://github.com/github/codeql.git
synced 2026-07-25 21:22:05 +02:00
15 lines
216 B
C#
15 lines
216 B
C#
using System.IO;
|
|
|
|
class PathCombine
|
|
{
|
|
void bad()
|
|
{
|
|
Path.Combine(@"C:\Users", @"C:\Program Files"); // $ Alert
|
|
}
|
|
|
|
void good()
|
|
{
|
|
Path.Join(@"C:\Users", @"C:\Program Files");
|
|
}
|
|
}
|