summaryrefslogtreecommitdiff
path: root/src/xine-utils
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-14 18:44:01 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-14 18:44:01 +0200
commit2cfbc00f7a0212f4df2bf4cfadf940213e1d4ae0 (patch)
tree0e22a3591df8fe2582673851fabe458d4c7bab17 /src/xine-utils
parent52f0b652d94463e622fbfcdde5b4f6bf01eed681 (diff)
downloadxine-lib-2cfbc00f7a0212f4df2bf4cfadf940213e1d4ae0.tar.gz
xine-lib-2cfbc00f7a0212f4df2bf4cfadf940213e1d4ae0.tar.bz2
Use memset instead of loops to initialise arrays to zero.
Diffstat (limited to 'src/xine-utils')
-rw-r--r--src/xine-utils/monitor.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/xine-utils/monitor.c b/src/xine-utils/monitor.c
index 1a348087c..19a9dc977 100644
--- a/src/xine-utils/monitor.c
+++ b/src/xine-utils/monitor.c
@@ -41,13 +41,10 @@ static long profiler_calls[MAX_ID] ;
static const char *profiler_label[MAX_ID] ;
void xine_profiler_init () {
- int i;
- for (i=0; i<MAX_ID; i++) {
- profiler_times[i] = 0;
- profiler_start[i] = 0;
- profiler_calls[i] = 0;
- profiler_label[i] = NULL;
- }
+ memset(profiler_times, 0, sizeof(profiler_times));
+ memset(profiler_start, 0, sizeof(profiler_start));
+ memset(profiler_calls, 0, sizeof(profiler_calls));
+ memset(profiler_label, 0, sizeof(profiler_label));
}
int xine_profiler_allocate_slot (const char *label) {