зеркало из https://github.com/mono/hal-sharp.git
2006-07-18 Aaron Bockover <abock@gnome.org>
* src/HalDevice.cs: Return empty Device/string arrays instead of null svn path=/trunk/hal-sharp/; revision=62708
This commit is contained in:
Родитель
c005ff984d
Коммит
6623a8a493
|
@ -1,3 +1,7 @@
|
|||
2006-07-18 Aaron Bockover <abock@gnome.org>
|
||||
|
||||
* src/HalDevice.cs: Return empty Device/string arrays instead of null
|
||||
|
||||
2006-07-18 Aaron Bockover <abock@gnome.org>
|
||||
|
||||
* src/HalDevice.cs: Added null checks for Hal.Context to prevent
|
||||
|
|
|
@ -272,7 +272,7 @@ namespace Hal
|
|||
int device_count;
|
||||
|
||||
if(ctx == null) {
|
||||
return null;
|
||||
return new string[0];
|
||||
}
|
||||
|
||||
switch(findMethod) {
|
||||
|
@ -300,7 +300,7 @@ namespace Hal
|
|||
public static Device [] UdisToDevices(Context ctx, string [] udis)
|
||||
{
|
||||
if(ctx == null) {
|
||||
return null;
|
||||
return new Device[0];
|
||||
}
|
||||
|
||||
Device [] devices = new Device[udis.Length];
|
||||
|
|
Загрузка…
Ссылка в новой задаче