summaryrefslogtreecommitdiffstats
path: root/math/gcalctool/files/patch-gcalctool_functions.c
blob: ba3d6af38bebc18e378668c0955eb967ca6da94d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- gcalctool/functions.c.orig  Mon Feb 28 17:07:30 2005
+++ gcalctool/functions.c   Mon Feb 28 17:07:43 2005
@@ -311,7 +311,6 @@
 void
 trig_filter(char **func) 
 {
-    assert(func);
 
     enum mode {
         normal = 0,
@@ -322,6 +321,8 @@
   
     int inverse;
     int hyperbolic;
+
+    assert(func);
 
     inverse = (v->inverse) ? inv : 0;
     hyperbolic = (v->hyperbolic) ? hyp : 0;