comparison dmres.c @ 629:3af0d6e39629

Do not add randomly dmf_open()'d files that do not exist in resource lib to the lib.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 15 Apr 2013 03:39:24 +0300
parents 0533f94e843b
children 6e2b53f2878b
comparison
equal deleted inserted replaced
628:0533f94e843b 629:3af0d6e39629
677 handle = dmres_new(lib, filename, 0, 0); 677 handle = dmres_new(lib, filename, 0, 0);
678 if (handle == NULL) 678 if (handle == NULL)
679 return NULL; 679 return NULL;
680 680
681 handle->fops = &dfStdioFileOps; 681 handle->fops = &dfStdioFileOps;
682 dmres_insert(lib, handle);
683 } 682 }
684 else 683 else
685 return NULL; 684 return NULL;
686 #else 685 #else
687 // Stdio not enabled, fail 686 // Stdio not enabled, fail