about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Modules/zprof.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c4ec2b2d0..840f9a9fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-05-28  Bart Schaefer  <schaefer@zsh.org>
 
+	* unposted: Src/Modules/zprof.c: Silence bogus compiler warnings
+	about variables used when unitialized.
+
 	* Andrej: 14501 (as tweaked by 14510): Fix device and FIFO tests
 	for Cygwin and other platforms where they're not implemented or
 	the testing user has insufficient permissions.
diff --git a/Src/Modules/zprof.c b/Src/Modules/zprof.c
index 4034f9273..9c7acb334 100644
--- a/Src/Modules/zprof.c
+++ b/Src/Modules/zprof.c
@@ -219,11 +219,11 @@ zprof_wrapper(Eprog prog, FuncWrap w, char *name)
 {
     int active = 0;
     struct sfunc sf, *sp;
-    Pfunc f;
+    Pfunc f = NULL;
     Parc a = NULL;
     struct timeval tv;
     struct timezone dummy;
-    double prev, now;
+    double prev = 0, now;
 
     if (zprof_module && !(zprof_module->flags & MOD_UNLOAD)) {
         active = 1;